Can I send a logfile, generated by an local application (outside AWS) to cloudwatch?

0

Its a PowerShell script that continuously generates performance monitoring data. It runs on a client to monitor the performance on an end-user device. Any chance I can add the results to cloudwatch?

asked a year ago462 views
2 Answers
0

You can do try the following steps:

  1. Install Cloudwatch Agent on the Windows Server.
  2. Create the CloudWatch Agent Configuration File with the Wizard
  3. Edit the CloudWatch agent configuration file: Logs section - log_collected field, to send the result file to CloudWatch
AWS
answered a year ago
  • Hi Ronald, thanks. I have read these resources, but can't seem to find the answer I am looking for. Allow me to explain a bit further: I have a script that is testing performance of my app (which is hosted on AWS) on my client. Every few minutes, a few tests run, and then a log file – entry is generated, which contains a timestamp and 3 numerical values. I would like to display how these values vary over time, as a chart in CloudWatch.

    If that is possible with the agent:

    • how can I configure the agent, that it reads the log file every n minutes and sends the timestamp and the values to CloudWatch?
    • What format and structure does the log file need to have? (I can customize the log file and the data-structure in it, in any way the agent needs, I just need to know how it's expecting the data.)
    • How do I configure cloud watch to display these values in a chart?

    Thanks!

0

Hello,

AWS has a Powershell module for invoking API calls. The Cmdlet used for publishing logs to CloudWatch is Write-CWLLogEvent. More information about what the API call does can be found on the CLI documentation.

To create visualization of the log data you can use metric filters.. This will create a metric every time a new log entry meets the pattern you create.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions