Kinesis Agent Input - Log file created for each day

1k Views Asked by At

New Log file is created for each day with date appended in the name. For example "data_log-2017-05-14" log file is created for 14th May.

I need to set up Kinesis Agent to read data from the logs generated. But since each day a new log file is created, how to handle this in agent.json file?

Any suggestions on this?

1

There are 1 best solutions below

0
On

The Kinesis Agent is able to support file patterns and log rotation.

{ 
  "flows": [
    { 
      "filePattern": "/tmp/app.log*", 
      "deliveryStream": "yourdeliverystream"
    } 
  ] 
} 

Please refer to this link for more info: http://docs.aws.amazon.com/firehose/latest/dev/writing-with-agents.html