# Logstash Output plugin with HTTP-API Key

**URL:** https://discuss.elastic.co/t/logstash-output-plugin-with-http-api-key/105808
**Category:** Logstash
**Created:** [October 30, 2017, 8:47pm UTC](https://discuss.elastic.co/t/logstash-output-plugin-with-http-api-key/105808 "2017-10-30T20:47:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MuthuV](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MuthuV](https://discuss.elastic.co/u/MuthuV)
#### Post date: [October 30, 2017, 8:47pm UTC](https://discuss.elastic.co/t/logstash-output-plugin-with-http-api-key/105808/1 "2017-10-30T20:47:20Z")

</div>

Hi Team,

Here is my scenario,  
I am currently doing POC to read error records from oracle Database tables and pumping to ElasticSearch - DataLens.  
I am using Logstash-5.6.3 currently, Added the JDBC Input plugins, Able to connect DB and read records. Tried output plugin to write into file(Json). It works fine.

My object is to pump the records to Elastic Search - DataLens.  
I am currently blocked in Output plugin configuration because of HTTP API key. I am unable to get the correct output configuration for HTTP API key.  
HTTP API key is something like this: “\_df3fdgs43grh3f5f3sh343gggggsadf"

My logstash Config file is,  
input {  
jdbc {  
jdbc\_connection\_string =\> "jdbc:oracle:thin:@"  
jdbc\_driver\_library =\> "/ojdbc7.jar"  
jdbc\_driver\_class =\> "Java::oracle.jdbc.driver.OracleDriver"  
jdbc\_validate\_connection =\> true  
schedule =\> "\* \* \* \* \*"  
jdbc\_user =\> "DBusername"  
jdbc\_password =\> "DBPassword"  
statement =\> "SELECT \* from DBTable"  
}  
}

output {  
elasticsearch {  
hosts =\> "[https://in.datalens](https://in.datalens).host:port/nonprod/elasticsearch/merchgroup-MuthuTest-logs"  
manage\_template =\> false  
x-api-key =\> “\_df3fdgs43grh3f5f3sh343gggggsadf"  
}  
stdout { }  
}

Could you anyone help me in finding the configuration?

Thanks,  
Muthu

---

<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 27, 2017, 8:52pm UTC](https://discuss.elastic.co/t/logstash-output-plugin-with-http-api-key/105808/2 "2017-11-27T20:52:16Z")

</div>

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