I'm using python logging library to write to log file.
Currently It write to a static file, and contain:
app_name=myapp 2025-06-25 05:44:38 INFO builtins <module> Hello world
I'm new to rsyslog. How to set rsyslog templates to:
- Extract the value of 'app_name' and use it as 'key'
- Write to local log file with the name of key.log (i.e: myapp.log)
- And when writing, only start from the timestamp to the rest.