Is it possible to have the agent parse several log files and use wildcards for that?

Yes, you can have the datadog-agent parse several log files by using the following syntax in the datadog.conf configuration file of the agent:

dogstreams: /path/to/log1:/path/to/parsers_module.py:parser_function_name, /path/to/log2:/path/to/other_parsers_module.py:its_parser_function_name

 

Yes, logfile paths may include wildcard *'s and ?'s, so you can have the datadog-agent parse all log files of a given directory for instance:

dogstreams: /path/to/logfolder/*.log:/path/to/parsers_module.py:parser_function_name

 

 

For further questions about setting up log parsing with the agent, you can refer to:

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk