Hi all,
I'm a very new user in Fluentd. I'm trying to understand if it is possible to have a single match rule that write to different log files. More specifically, I'd like to write a match rule for a http source, that given a certain part of the accepted URL, will redirect the output to a specific file. The match rule would be something like:
<match myapp.*>
@type file
# something that will parse the tag and extract the string corresponding to *
path /var/log/fluent/access+*
</match>
so that if Flunetd receive the request
it will write the output to a file like
access1.[date_string]
and if it receives
it will write to
access2.[date_string]
I know I might write a match rule for every possible path, but I'd like it to be dynamic. I understood I might do it embedding a little bit of Ruby inside the matching rule, but the syntax to use is not particularly clear from the config file documentation. Moreover, if there's a more specific guide and examples of the config file documentation, can you point it at me?
Thank you very much