# Cannot find the correct InfluxDB output lugin Config to avoid HTTP 400 error on the InfluxDB

**URL:** https://discuss.elastic.co/t/cannot-find-the-correct-influxdb-output-lugin-config-to-avoid-http-400-error-on-the-influxdb/222043
**Category:** Logstash
**Created:** [March 4, 2020, 10:47am UTC](https://discuss.elastic.co/t/cannot-find-the-correct-influxdb-output-lugin-config-to-avoid-http-400-error-on-the-influxdb/222043 "2020-03-04T10:47:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jeanflorentine](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jeanflorentine](https://discuss.elastic.co/u/jeanflorentine)
#### Post date: [March 4, 2020, 10:47am UTC](https://discuss.elastic.co/t/cannot-find-the-correct-influxdb-output-lugin-config-to-avoid-http-400-error-on-the-influxdb/222043/1 "2020-03-04T10:47:03Z")

</div>

logstash.conf

input {  
kafka {  
...  
}  
}

filter {  
json {  
source =\> "message"  
}  
}

output {  
influxdb {

# id =\> "influxdb080"

```
       db => "AMERXX01"
       user => "urxk1me1"
       password => "HA6H67yjHcp6XiX4"
       host => "tech-vl-a-rxx-62"
       port => "8086"
       #codec => "json"
       measurement => "K8S_E4"
       data_points => {
          "message" => "%{[message]}"
       }
       #exclude_fields => ["@timestamp", "@Version"]
       use_event_fields_for_data_points => true

```

# data\_points =\> {}

# data\_points =\> {'column1' =\> 'available', 'column2' =\> '@timestamp'}

# data\_points =\> {'available' =\> 'column1'}

# data\_points =\> {'column1' =\> 'available'}

```
     }
   }

```

I have tried all kind of combination , looking at other people experience on internet,  
whatever I do, I get an HTTP 400 error on InfluxDB:  
Mar 04 11:24:22 vl-a-rxx-62 influxd[20490]: [httpd] 10.215.74.239 - urxk1me1 [04/Mar/2020:11:24:22 +0100] "POST /write?db=AMERXX01&p=%5BREDACTED%5D&precision=ms&rp=autogen&u=urxk1me1 HTTP/1.1" 400 192459 "-" "Ruby" 50e0bdc0-5e02-11ea-ab4d-005056be1aa9 138978

I use versions Logstash 7.6.0 and InfluxDB 1.7.6

Any help or share experience welcome

---

<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: [April 1, 2020, 10:47am UTC](https://discuss.elastic.co/t/cannot-find-the-correct-influxdb-output-lugin-config-to-avoid-http-400-error-on-the-influxdb/222043/2 "2020-04-01T10:47:04Z")

</div>

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