# Constant warnings in logstash-plain.log

**URL:** <https://discuss.elastic.co/t/constant-warnings-in-logstash-plain-log/117068>\
**Category:** Logstash\
**Created:** [January 25, 2018, 3:45pm UTC](https://discuss.elastic.co/t/constant-warnings-in-logstash-plain-log/117068 "2018-01-25T15:45:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![80c1141eb6d0c564dd90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/80c1141eb6d0c564dd90/32/20893_2.png) [@80c1141eb6d0c564dd90](https://discuss.elastic.co/u/80c1141eb6d0c564dd90)\
**Post date:** [January 25, 2018, 3:45pm UTC](https://discuss.elastic.co/t/constant-warnings-in-logstash-plain-log/117068/1 "2018-01-25T15:45:37Z")

</div>

What are this constant warnings in logstash-plain.log:

[2018-01-25T18:38:13,210][WARN][org.logstash.dissect.Dissector] Dissector mapping, field found in event but it was empty {"field"=\>"message", "event"=\>{"span-name"=\>"", "tags"=\>["preprod\_log", "beats\_input\_codec\_plain\_applied"], "client"=\>"", "message"=\>"2018-01-25 18:39:07.903 DEBUG [main] s.d.s.w.r.o.OperationResponseReader [?] [app=] [host=] [span-name=] [trace-id=] [span-id=] [sys=] [prn=] [comp\_name=] [comp\_ver=] [client=] Setting spring response class to:Map«string,object»", "sys"=\>"", "offset"=\>73891897, "@version"=\>"1", "[preprod-api.example.com](http://preprod-api.example.com)"=\>"", "span-id"=\>"", "comp\_name"=\>"", "source"=\>"/var/log/api-01/api.log", "host"=\>"[preprod-api.example.com](http://preprod-api.example.com)", "logger"=\>"s.d.s.w.r.o.OperationResponseReader", "log\_level"=\>"DEBUG", "log\_date"=\>"2018-01-25 18:39:07.903", "msg\_body"=\>"Setting spring response class to:Map«string,object»", "prn"=\>"", "file"=\>"?", "trace-id"=\>"", "beat"=\>{"name"=\>"[preprod-api.example.com](http://preprod-api.example.com)", "version"=\>"6.1.0", "hostname"=\>"[preprod-api.example.com](http://preprod-api.example.com)"}, "app"=\>"", "comp\_ver"=\>"", "prospector"=\>{"type"=\>"log"}, "@timestamp"=\>2018-01-25T15:39:08.627Z, "thread"=\>"main"}}

logstash.conf Filter is

filter {  
dissect {  
mapping =\> {"message" =\> "%{log\_date} %{+log\_date} %{log\_level} [%{thread}] %{logger} [%{file}] [%{?app}=%{&app}] [%{?host}=%{&host}] [%{?span-name}=%{&span-name}] [%{?trace-id}=%{&trace-id}] [%{?span-id}=%{&span-id}] [%{?sys}=%{&sys}] [%{?prn}=%{&prn}] [%{?comp\_name}=%{&comp\_name}] [%{?comp\_ver}=%{&comp\_ver}] [%{?client}=%{&client}] %{msg\_body}"}  
}

```
  date {
    match => ["log_date", "yyyy-MM-dd HH:mm:ss.SSS"]
    target => ["@timestamp"]
    remove_field => ["log_date"]
       }

    }
```

---

<div class="post-metadata">

**Author:** ![80c1141eb6d0c564dd90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/80c1141eb6d0c564dd90/32/20893_2.png) [@80c1141eb6d0c564dd90](https://discuss.elastic.co/u/80c1141eb6d0c564dd90)\
**Post date:** [January 25, 2018, 4:27pm UTC](https://discuss.elastic.co/t/constant-warnings-in-logstash-plain-log/117068/2 "2018-01-25T16:27:45Z")

</div>

Not sure if exactly this thing helped, but I added this to "/etc/filebeat/filebeat.yml":

processors:

- drop\_fields:  
fields: ["beat.hostname", "[beat.name](http://beat.name)", "beat.version", "prospector.type"]

---

<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:** [February 22, 2018, 4:28pm UTC](https://discuss.elastic.co/t/constant-warnings-in-logstash-plain-log/117068/3 "2018-02-22T16:28:11Z")

</div>

Closed on February 22, 2018, 4:28pm UTC

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