# Logstash And InfluxDB configuration

**URL:** <https://discuss.elastic.co/t/logstash-and-influxdb-configuration/102769>\
**Category:** Logstash\
**Created:** [October 4, 2017, 10:26pm UTC](https://discuss.elastic.co/t/logstash-and-influxdb-configuration/102769 "2017-10-04T22:26:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishal\_Shah](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@Vishal\_Shah](https://discuss.elastic.co/u/Vishal_Shah)\
**Post date:** [October 4, 2017, 10:26pm UTC](https://discuss.elastic.co/t/logstash-and-influxdb-configuration/102769/1 "2017-10-04T22:26:47Z")

</div>

Hi I am trying to ingest the data collected by logstash into InfluxDB. Following are rows from the Log file:

2017-10-04 22:21:31 +0000 UTC | SourceNode | LogLevel | Module | ProcessStatus | ProcessName | DestinationNode

I went through a lot of resources but I was not able to configure the services to forward the data to Influx. However the data can be easily forwarded to elastic search and it works fine.

The configuration file looks as following:

input {  
tcp {  
port =\> 5959  
codec =\> json  
}  
}

filter{  
dissect {  
mapping =\> { "message" =\> "%{time\_stamp} | %{notifier} | %{level} | %{module} | %{proc\_status} | %{process} | %{nodes}" }  
}  
}

output  
{  
stdout { codec =\> json }

elasticsearch {  
codec =\> json  
hosts =\> ["10.240.0.46:9200"]  
ssl =\> "false"  
}

influxdb {  
codec =\> plain  
data\_points =\> {}  
host =\> host-ip  
db =\> "logs"  
user =\> username  
password =\> password  
}  
}

Can somebody point out the problem with the configuration file and recommend solutions?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 4:44am UTC](https://discuss.elastic.co/t/logstash-and-influxdb-configuration/102769/2 "2017-10-06T04:44:53Z")

</div>

> [@Vishal\_Shah](#):
>
> codec =\> plain

I'd start by removing that, not sure it would apply to influx.

---

<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:** [November 3, 2017, 4:45am UTC](https://discuss.elastic.co/t/logstash-and-influxdb-configuration/102769/3 "2017-11-03T04:45:18Z")

</div>

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