# Logstash output influxdb configure problem

**URL:** https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516
**Category:** Logstash
**Created:** [December 5, 2018, 11:29am UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516 "2018-12-05T11:29:38Z")
**Posts on this page:** 7
**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 5, 2018, 11:29am UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/1 "2018-12-05T11:29:38Z")

</div>

Influxdb server ip = 192.168.30.2  
logstash server ip = 192.168.30.3  
logstash.version"=\>"6.5.1  
InfluxDB shell version: 1.6.4

cat /etc/logstash/conf.d/02-beats-input.conf

input {  
beats {  
port =\> 5044  
ssl =\> true  
type =\> "json"  
ssl\_certificate =\> "/etc/pki/tls/certs/onlyoffice.crt"  
ssl\_key =\> "/etc/pki/tls/private/onlyoffice.key"  
}  
}

cat /etc/logstash/conf.d/30-influxdb-output.conf  
output {  
influxdb {  
host =\> ["192.168.30.2:8086"]  
user =\> "admin"  
password =\> "admin"  
db =\> "dac\_demo"  
measurement =\> "logstash"  
allow\_time\_override =\> "true"  
time\_precision =\> "s"  
use\_event\_fields\_for\_data\_points =\> "true"  
exclude\_fields =\> ["@version","@timestamp","type","host","command","sar\_time","series\_name"]  
}  
stdout {  
codec =\> rubydebug  
}  
}

I have some grok files in /etc/logstash/conf.d/.

/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/ --config.test\_and\_exit  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[INFO] 2018-12-05 17:21:33.747 [LogStash::Runner] runner - Using config.test\_and\_exit mode. Config Validation Result: OK. Exiting Logstash

/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/  
[INFO] 2018-12-05 17:23:14.881 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=\>"6.5.1"}  
[[main]-pipeline-manager] pipeline - Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"#\<LogStash:: .............................  
[Converge PipelineAction::Create] agent - Failed to execute action {:id=\>:main, :action\_type=\>LogStash  
[Api Webserver] agent - Successfully started Logstash API endpoint {:port=\>9600}

But not listening port 5044  
I wish to input all fields in influxdb.

What is my wrong?  
Please help me.

---

<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: [December 6, 2018, 2:25pm UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/2 "2018-12-06T14:25:37Z")

</div>

Would you be able to post a little more of the error message? It looks like it's cut off

> Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"#\<LogStash::

---

<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 7, 2018, 4:02pm UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/3 "2018-12-07T16:02:31Z")

</div>

[2018-12-07T21:59:38,031][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-12-07T22:00:09,710][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.5.1"}  
[2018-12-07T22:00:55,758][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2018-12-07T22:00:56,631][INFO][logstash.filters.geoip] Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-geoip-5.0.3-java/vendor/GeoLite2-City.mmdb"}  
[2018-12-07T22:00:56,878][INFO][logstash.filters.geoip] Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-geoip-5.0.3-java/vendor/GeoLite2-City.mmdb"}  
[2018-12-07T22:00:57,073][INFO][logstash.filters.geoip] Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-geoip-5.0.3-java/vendor/GeoLite2-City.mmdb"}  
[2018-12-07T22:00:57,246][ERROR][logstash.pipeline] Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"#\<LogStash::FilterDelegator:0x50a2d218 @metric\_events\_out=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: out value:0, @metric\_events\_in=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: in value:0, @metric\_events\_time=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: duration\_in\_millis value:0, @id="8241400b966d259ede6710e282b5da9372d969260f2c62608fc0fb914c5f22d1", @klass=LogStash::Filters::Grok, @metric\_events=#LogStash::Instrument::NamespacedMetric:0x1cfb045c, @filter=\<LogStash::Filters::Grok match=\>{"message"=\>"^%{POSTFIX\_ANVIL}$"}, add\_tag=\>["\_grok\_postfix\_success"], id=\>"8241400b966d259ede6710e282b5da9372d969260f2c62608fc0fb914c5f22d1", patterns\_dir=\>["/etc/logstash/patterns.d"], tag\_on\_failure=\>["\_grok\_postfix\_anvil\_nomatch"], enable\_metric=\>true, periodic\_flush=\>false, patterns\_files\_glob=\>"\*", break\_on\_match=\>true, named\_captures\_only=\>true, keep\_empty\_captures=\>false, timeout\_millis=\>30000, tag\_on\_timeout=\>"\_groktimeout"\>\>", :error=\>"pattern %{POSTFIX\_ANVIL} not defined", :thread=\>"#\<Thread:0x75ca5732 run\>"}  
[2018-12-07T22:00:58,437][ERROR][logstash.pipeline] Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>#\<Grok::PatternError: pattern %{POSTFIX\_ANVIL} 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.4/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.4/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.4/lib/logstash/filters/grok.rb:270:in`register'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:242:in `register_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:253:in`block in register\_plugins'", "org/jruby/RubyArray.java:1734:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:253:in`register\_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:595:in `maybe_setup_out_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:263:in`start\_workers'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:200:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:160:in`block in start'"], :thread=\>"#\<Thread:0x75ca5732 run\>"}  
[2018-12-07T22:00:58,451][ERROR][logstash.agent] Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: PipelineAction::Create, action\_result: false", :backtrace=\>nil}

---

<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: [December 7, 2018, 4:43pm UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/4 "2018-12-07T16:43:31Z")

</div>

> [@abu.sayeed](#):
>
> #\<Grok::PatternError: pattern %{POSTFIX\_ANVIL} not defined\>

There is your error!  
That GROK pattern does not exist 🙂

---

<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 9, 2018, 4:43am UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/5 "2018-12-09T04:43:24Z")

</div>

problem solve

---

<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: [December 9, 2018, 2:12pm UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/6 "2018-12-09T14:12:08Z")

</div>

Is your InfluxDB running? Looks like it cannot connect to it.

---

<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 6, 2019, 2:12pm UTC](https://discuss.elastic.co/t/logstash-output-influxdb-configure-problem/159516/7 "2019-01-06T14:12:10Z")

</div>

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