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

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

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