# Problem with logstash

**URL:** https://discuss.elastic.co/t/problem-with-logstash/137445
**Category:** Logstash
**Created:** [June 26, 2018, 2:08pm UTC](https://discuss.elastic.co/t/problem-with-logstash/137445 "2018-06-26T14:08:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![joce455](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@joce455](https://discuss.elastic.co/u/joce455)
#### Post date: [June 26, 2018, 2:08pm UTC](https://discuss.elastic.co/t/problem-with-logstash/137445/1 "2018-06-26T14:08:00Z")

</div>

Hi all, I have a problem to start logstash i think that the cause is my logstash.conf,  
input {  
udp {  
port =\> 5000  
codec =\> json  
}  
}

filter {  
if [docker][image] =~ /^rancher/ or [docker][image] =~ /^bekt/ {  
drop { }  
}  
mutate {  
remove\_field =\> ["stream","tags"]  
gsub =\> ["message", "\u001b", ""]  
gsub =\> ["message", "[[0-9][0-9]m", ""]  
gsub =\> ["message", "[\]", ""]  
}  
grok {  
match =\> {  
"message" =\> "%{TIMESTAMP\_ISO8601:date}](\s\s|\s)%{LOGLEVEL:logtype}: %{GREEDYDATA:header}(:\s|++++:|\s=\s)(%{GREEDYDATA:content}(reqId=%{GREEDYDATA:trasactionId})|%{GREEDYDATA:content})" }  
}

split { field =\> "content" }

if [message] =~ "{"topic":" {  
grok {  
match =\> { "message" =\> "{"topic":%{QS:topic}"}  
}  
}

}  
output {  
elasticsearch {  
hosts =\> ["elasticsearch:9200"]  
}  
stdout { codec =\> rubydebug }  
}

I cant find the mistake, could someone help me please?.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [June 26, 2018, 2:21pm UTC](https://discuss.elastic.co/t/problem-with-logstash/137445/2 "2018-06-26T14:21:15Z")

</div>

Presumably you get an error message when Logstash doesn't start...?

---

<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: [July 24, 2018, 2:31pm UTC](https://discuss.elastic.co/t/problem-with-logstash/137445/3 "2018-07-24T14:31:51Z")

</div>

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