# Logstash main pipeline create problems

**URL:** <https://discuss.elastic.co/t/logstash-main-pipeline-create-problems/161946>\
**Category:** Logstash\
**Created:** [December 23, 2018, 10:06am UTC](https://discuss.elastic.co/t/logstash-main-pipeline-create-problems/161946 "2018-12-23T10:06:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abu.sayeed](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@abu.sayeed](https://discuss.elastic.co/u/abu.sayeed)\
**Post date:** [December 23, 2018, 10:06am UTC](https://discuss.elastic.co/t/logstash-main-pipeline-create-problems/161946/1 "2018-12-23T10:06:25Z")

</div>

filter {  
if [type] == "syslog" {  
grok {  
match =\> ["message", "\<%{POSINT:syslog\_pri}\>%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" ],  
match =\> ["message", "\<%{POSINT:priority}\> %{MONTHNUM}/%{MONTHDAY}/%{YEAR}:%{HOUR}:%{MINUTE}:%{SECOND} %{WORD:tz} %{SYSLOGHOST} %{GREEDYDATA:radius\_message}"]  
}  
}  
}

/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/ --config.test\_and\_exit

WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[WARN] 2018-12-23 16:05:40.702 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[FATAL] 2018-12-23 16:05:45.835 [LogStash::Runner] runner - The given configuration is invalid. Reason: Expected one of #, } at line 268, column 202 (byte 9740) after filter {  
if [type] == "syslog" {  
grok {  
match =\> ["message", "\<%{POSINT:syslog\_pri}\>%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" ]  
[ERROR] 2018-12-23 16:05:45.863 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

What is wrong?  
Thanks

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [January 3, 2019, 3:32pm UTC](https://discuss.elastic.co/t/logstash-main-pipeline-create-problems/161946/2 "2019-01-03T15:32:11Z")

</div>

> [@abu.sayeed](#):
>
> match =\> ["message", "\<%{POSINT:syslog\_pri}\>%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" ],  
> match =\> ["message", "\<%{POSINT:priority}\> %{MONTHNUM}/%{MONTHDAY}/%{YEAR}:%{HOUR}:%{MINUTE}:%{SECOND} %{WORD:tz} %{SYSLOGHOST} %{GREEDYDATA:radius\_message}"]

Why do you have multiple match =\> entries?  
If you want to use multiple patterns just separate the quoted strings by a comma inside the square brackets.

> **[Grok filter plugin | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html#plugins-filters-grok-match)**

---

<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:** [January 31, 2019, 3:32pm UTC](https://discuss.elastic.co/t/logstash-main-pipeline-create-problems/161946/3 "2019-01-31T15:32:13Z")

</div>

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