# Getting "Pipeline aborted due to error"

**URL:** <https://discuss.elastic.co/t/getting-pipeline-aborted-due-to-error/213077>\
**Category:** Logstash\
**Created:** [December 26, 2019, 12:42pm UTC](https://discuss.elastic.co/t/getting-pipeline-aborted-due-to-error/213077 "2019-12-26T12:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravananveera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravananveera/32/59765_2.png) [@saravananveera](https://discuss.elastic.co/u/saravananveera)\
**Post date:** [December 26, 2019, 12:42pm UTC](https://discuss.elastic.co/t/getting-pipeline-aborted-due-to-error/213077/1 "2019-12-26T12:42:36Z")

</div>

Hi

I have checked the logstash config test. it's show there is no issue in config file but i have received the logstash log "Pipeline aborted due to error"

Config test log:

/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/ffmpeglogs.conf --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] 2019-12-26 12:11:13.389 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
Configuration OK  
[INFO] 2019-12-26 12:11:16.182 [LogStash::Runner] runner - Using config.test\_and\_exit mode. Config Validation Result: OK. Exiting Logstash

Logstash Error log:

[2019-12-26T12:26:58,649][ERROR][logstash.pipeline] Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>#\<Grok::PatternError: pattern %{NGINX\_ACCESS} not defined\>, :backtrace=\>["/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/jls-grok-0.11.5/lib/grok-pure.rb:123:in `block in compile'", "org/jruby/RubyKernel.java:1292:in `loop'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/jls-grok-0.11.5/lib/grok-pure.rb:93:in `compile'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-grok-4.0.3/lib/logstash/filters/grok.rb:281:in `block in register'", "org/jruby/RubyArray.java:1734:in `each'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-grok-4.0.3/lib/logstash/filters/grok.rb:275:in `block in register'", "org/jruby/RubyHash.java:1343:in `each'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-grok-4.0.3/lib/logstash/filters/grok.rb:270:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:340:in `register_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:351:in `block in register\_plugins'", "org/jruby/RubyArray.java:1734:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:351:in `register\_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:729:in `maybe_setup_out_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:361:in `start\_workers'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:288:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:248:in `block in start'"], :thread=\>"#\<Thread:0x25500908 run\>"}

My Grok pattern:

input {  
kafka {  
bootstrap\_servers =\>["localhost:9092"]  
topics =\> ["ffmpeglog"]  
codec =\> "json"  
add\_field =\> { "logz" =\> "ffmpeglogz" }  
}  
}

filter {

if [logz] == "ffmpeglogz" {  
grok {  
patterns\_dir =\> "/etc/logstash/patterns"  
match =\> { "message" =\> "%{NGINX\_ACCESS}" }  
remove\_tag =\> ["\_grokparsefailure"]  
add\_tag =\> ["ffmpeg\_access"]  
remove\_field =\> [message]  
}  
if [response] == "101" {

```
date {
    match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]
    target => "@timestamp"
    }

geoip {
  source => "clientip"
  target => "geoip"
  database => "/usr/share/GeoIP/GeoLite2-City.mmdb"

```

}  
geoip {  
source =\> "clientip"  
target =\> "geoip"  
database =\> "/usr/share/GeoIP/GeoLite2-ASN.mmdb"  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][longitude]}" ]  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][latitude]}" ]  
}  
mutate {  
convert =\> ["[geoip][coordinates]", "float"]  
remove\_tag =\> ["\_geoip\_lookup\_failure"]  
remove\_field =\> ["@version", "auth", "offset", "verb"]  
}  
}  
else {

```
    drop {}
    }	

```

}  
}

output {

if [logz] == "ffmpeglogz" {  
elasticsearch {  
hosts =\> ["51.78.182.102:9200"]  
index =\> "ffmpeglogs-%{+YYYY.MM.dd}"  
}  
file {  
path =\> "/var/log/logstash/ffmpeglogs.log"  
}  
}  
}

Could you please help me.

---

<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 23, 2020, 12:42pm UTC](https://discuss.elastic.co/t/getting-pipeline-aborted-due-to-error/213077/2 "2020-01-23T12:42:37Z")

</div>

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