Can someone please help me with this question ?
Per our usecase, I have changed the logging driver to "fluentd" in /etc/docker/daemon.json
So all pods that gets deployed on the kubernetes nodes will directly forward the log events to the fluentd instace.
we don't have any ElasticSearch, rather we would like to have the received log events be written to the file system, in this particular way.
/data/<namespace>/<service name>/<last 5 characters of POD name>/application.log
and application.log, shall have the log event as is. (timestamp generated by the app and logevent)
I am trying to tweak this below config
[SERVICE]
Flush 5
Daemon Off
Log_Level debug
[INPUT]
Name forward
Listen 0.0.0.0
Port 24224
[FILTER]
Match **
Name kubernetes
Merge_Log On
K8S-Logging.Parser On
Merge_Log On
Merge_Log_Key log_processed
Annotations On
Labels On
[OUTPUT]
Name file
Path ??