'Sending log4j logs in stdout to fluentd container and search logs in splunk
I am trying to send logs(in stdout) from a pod to the fluentd container in it. I a pod i have 2 containers among which 1 is fluentd.
It works if i have a file in fluentd using the command:
@type tail.
I also tried the syslog but i did not see an logs in splunk.
@type syslog
But i want to know if there is any other option to send the logs directly to fluentd. (i see the logs using oc logs -c command for a pod). I am not trying to send the logs in JSON format
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
