# Fluentd is not able to send json logs to logstash

**URL:** https://discuss.elastic.co/t/fluentd-is-not-able-to-send-json-logs-to-logstash/365264
**Category:** Logstash
**Created:** [August 21, 2024, 9:27am UTC](https://discuss.elastic.co/t/fluentd-is-not-able-to-send-json-logs-to-logstash/365264 "2024-08-21T09:27:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![upreddy](https://avatars.discourse-cdn.com/v4/letter/u/f04885/32.png) [@upreddy](https://discuss.elastic.co/u/upreddy)
#### Post date: [August 21, 2024, 9:27am UTC](https://discuss.elastic.co/t/fluentd-is-not-able-to-send-json-logs-to-logstash/365264/1 "2024-08-21T09:27:06Z")

</div>

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\"}}""}

**sample json log:-**  
{"applicationName":"abc"}

**fluentd config:-**

 @type tail path /opt/jenkins/deploymentlogs/output.json, pos\_file /var/log/td-agent/httpd-access.log.pos, format json, time\_format %Y-%m-%dT%H:%M:%S, tag \*, read\_from\_head true, #exclude\_path ["/var/log/fluent\*"] #from\_encoding UTF-8 #encoding UTF-8 @type json

\<filter \*\*\>  
@type parser  
format json  
key\_name log  
reserve\_data true

\<match \*\*\>  
@type stdout  
  
\<match \*\*\>  
@type http  
time\_as\_integer true  
http\_method post  
tls\_client\_cert\_path "/etc/fluent/ssl/client.pem"  
tls\_private\_key\_path "/etc/fluent/ssl/client.key"  
tls\_ca\_cert\_path "/etc/fluent/ssl/ca.pem"  
tls\_verify\_mode "peer"  
tls\_version TLSv1\_2  
endpoint xxxxxxxxxxxxxxxx  
  
Could you please guide me on this?  
Thanks

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [August 21, 2024, 12:55pm UTC](https://discuss.elastic.co/t/fluentd-is-not-able-to-send-json-logs-to-logstash/365264/2 "2024-08-21T12:55:23Z")

</div>

Hello,

This seems to be an issue with fluentd, which is not an Elastic tool and not supported here.

Do you have any issue on logstash side? Any log error from logstash?

For issues with fluentd you need to look for some fluentd forum.
