Hi,
I am trying to send json logs from application pods to logstash through fluentd agent. But i am getting one error and unable to send json logs to logstash. We mentioned the file extension in fluentd config is .json but when this extension is .log or .txt it is working fine(means the path file). I am sharing getting error.
2024-08-21 07:30:44 +0000 [warn]: #0 pattern not matched: "{"applicationName":"abc"}}"
2024-08-21 07:30:44 +0000 [warn]: #0 dump an error event: error_class=ArgumentError error="log does not exist" location=nil tag="fluent.warn" time=2024-08-21 07:30:44.830543276 +0000 record={"message"=>"pattern not matched: "{\"applicationName\":\"abc\"}}""}
2024-08-21 07:30:44.830543276 +0000 fluent.warn: {"message":"pattern not matched: "{\"applicationName\":\"abc\"}}""}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.