on-internet
← Community

Cloudwatch: create log stream using wildcard name of filepath

Stack Overflow ·

We have a sample cloudwatch config like below for our windows-based AWS cloud EC2 instance: "logs": { "logs_collected": { "files": { "collect_list": [ { "file_path": "c:\\testfolder\\test.log", "log_group_name": "oneSpecificInstance", "log_stream_name": "{instance_id}/test.log", "timezone": "Local" } ] } } } As part of some test automation, I might generate various kinds of logs that might change over time. Given a specific log directory C:\testlog, can a specific log stream be created with the file name of any file in that folder that matches file path pattern *.log ? "logs": { "logs_collecte

Comments

Sign in or sign up to comment and upvote.

No comments yet.