# How to send JSON directly to elasticsearch w/o any parsing in logstash

**URL:** https://discuss.elastic.co/t/how-to-send-json-directly-to-elasticsearch-w-o-any-parsing-in-logstash/251030
**Category:** Logstash
**Created:** [October 5, 2020, 4:47pm UTC](https://discuss.elastic.co/t/how-to-send-json-directly-to-elasticsearch-w-o-any-parsing-in-logstash/251030 "2020-10-05T16:47:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nandalapadu\_shamriya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandalapadu_shamriya/32/74482_2.png) [@nandalapadu\_shamriya](https://discuss.elastic.co/u/nandalapadu_shamriya)
#### Post date: [October 5, 2020, 4:47pm UTC](https://discuss.elastic.co/t/how-to-send-json-directly-to-elasticsearch-w-o-any-parsing-in-logstash/251030/1 "2020-10-05T16:47:18Z")

</div>

I am printing the JSON format logs in my syslog's like below.  
{"app":"Svc","@timestamp":"2020-10-05T15:25:17.965Z","logger":"com.zaxxer.hikari.pool.HikariPool","level":"WARN","class":"com.zaxxer.hikari.pool.HikariPool$HouseKeeper","method":"run","file":"HikariPool.java","line":779,"thread":"HikariPool-1 housekeeper","message":"HikariPool-1 - Thread starvation or clock leap detected "}

I want to see as below format with out any logstash filter as i donot have control over config file.Is there a way to do it? Please Help!!

{  
"thread" =\> "HikariPool-1 housekeeper",  
"@version" =\> "1",  
"host" =\> "XXXXX",  
"app" =\> "Svc",  
"message" =\> "HikariPool-1 - Thread starvation or clock leap detected ",  
"class" =\> "com.zaxxer.hikari.pool.HikariPool$HouseKeeper",  
"level" =\> "WARN",  
"line" =\> 779,  
"method" =\> "run",  
"logger" =\> "com.zaxxer.hikari.pool.HikariPool",  
"@timestamp" =\> 2020-10-05T15:25:17.965Z,  
"file" =\> "HikariPool.java"  
}

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9008bef1260a2956744f1116bcaf9e04fa22d49.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 2, 2020, 4:47pm UTC](https://discuss.elastic.co/t/how-to-send-json-directly-to-elasticsearch-w-o-any-parsing-in-logstash/251030/2 "2020-11-02T16:47:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
