# Duplicate log on message field with springboot java

**URL:** <https://discuss.elastic.co/t/duplicate-log-on-message-field-with-springboot-java/312941>\
**Category:** Logs\
**Tags:** java\
**Created:** [August 25, 2022, 3:26pm UTC](https://discuss.elastic.co/t/duplicate-log-on-message-field-with-springboot-java/312941 "2022-08-25T15:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jluisv98](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jluisv98](https://discuss.elastic.co/u/jluisv98)\
**Post date:** [August 25, 2022, 3:26pm UTC](https://discuss.elastic.co/t/duplicate-log-on-message-field-with-springboot-java/312941/1 "2022-08-25T15:26:35Z")

</div>

I'm new to the ELK stack, I'm trying to send the logs of a web application in springboot to logstash.  
This is the stream log I send:

````auto
{"@timestamp":"2022-08-24T17:25:09.346-05:00","@version":"1","
message":"Starting *****Application using Java 1.8.0_275 on DESKTOP-******* with PID 2****2 ()","logger_name":"********",
"thread_name":"main","level":"INFO","level_value":20000,"project-name":"test","jvm_system_variable":"OpenJDK Runtime Environment "}```

````

in the discover panel I get something like this:

```auto
@timestamp:Aug 25, 2022 @ 10:15:07.214 @version:1 host:111.28.1.1 
message:{"@timestamp":"2022-08-25T10:15:33.384-05:00","@version":"1","message":"SELECT * FROM ----- WHERE ------ = ? AND ----- = ?",
"logger_name":"org.hibernate.SQL","thread_name":"http-------","level":"DEBUG","level_value":10000,"project-name":"test",
"jvm_system_variable":"OpenJDK Runtime Environment 11.0.12+7-LTS"} port:----- _id:wL-------a-4 _index:logstash-2022.08.19-000001 _score:1 _type:_doc

```

I just want to have the message field as the whole log, how can I achieve this?

---

<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:** [September 22, 2022, 3:27pm UTC](https://discuss.elastic.co/t/duplicate-log-on-message-field-with-springboot-java/312941/2 "2022-09-22T15:27:18Z")

</div>

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