# Logstash HTTP\_Poller input plugin not sending output to Elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193>\
**Category:** Logstash\
**Created:** [September 20, 2017, 2:39pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193 "2017-09-20T14:39:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VIJAYP](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@VIJAYP](https://discuss.elastic.co/u/VIJAYP)\
**Post date:** [September 20, 2017, 2:39pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193/1 "2017-09-20T14:39:04Z")

</div>

Hello,

I'm trying to log IBM Liberty server's metrics to Elasticsearch for dashboard purposes.

Here's my logstash config file:

```auto
input {
	http_poller {		
		urls => {			
			"service1" => "https://dc2-svzsys01.xxxx.com:11101/IBMJMXConnectorREST"
			"service2" => "https://dc2-svzsys01:11101/IBMJMXConnectorREST/mbeans"			
			"service3" => "https://dc2-svzsys01.xxxxx.com:11101/IBMJMXConnectorREST/mbeanCount"
		}
		truststore => "/opt/data/conf/downloaded_truststore.jks"
		truststore_password => " ******"    
		codec => "json"
		request_timeout => 8
		schedule => { "every" => "3s" }    	
		metadata_target => http_poller_metadata
		tags => jmx_endpoints
	}
}

filter {	
        json {
		source => "message"
	}
        
	if [http_request_failure] or [http_poller_metadata][code] != 200 {		
		mutate {
			add_tag => "bad_request"
		}
	}
       
        if [http_poller_metadata][code] == 200 {		
		mutate {
			add_tag => "good_request"
		}
	}
}

output {	
	elasticsearch {		
		hosts => ["10.19.28.21:9200"]
		index => "g2-jmx-metrics-%{+YYYY.MM.dd}"		
	}

        file {
		path => "/opt/logs/logstash-5.1.2/g2-jmx-metrics-%{+YYYY.MM.dd}.txt"
	}
	
	stdout {
		codec => rubydebug
	}
}

```

**I see logs in Kibana only if I shutdown that specific server or if there's any issue with the URL. Otherwise, I don't even see the INDEX getting created.**

```auto
http_poller_metadata.request.url https://dc2-svzsys01.xxx.com:11101/IBMJMXConnectorREST

message Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /IBMJMXConnectorREST

tags _jsonparsefailure, jmx_endpoints, bad_request

```

**Fie Output plugin creating files at given location only if there's error. Otherwise nothing.**

For instance, If I hit this URL ([https://dc2-svzsys01:11101/IBMJMXConnectorREST/mbeans](https://dc2-svzsys01:11101/IBMJMXConnectorREST/mbeans)) in any browser, output looks like this:

```auto
// 20170921154215
// https://dc2-svzdev01.ulinedm.com:11101/IBMJMXConnectorREST

{
  "version": "6",
  "mbeans": "/IBMJMXConnectorREST/mbeans",
  "createMBean": "/IBMJMXConnectorREST/mbeans/factory",
  "mbeanCount": "/IBMJMXConnectorREST/mbeanCount",
  "defaultDomain": "/IBMJMXConnectorREST/defaultDomain",
  "domains": "/IBMJMXConnectorREST/domains",
  "notifications": "/IBMJMXConnectorREST/notifications",
  "instanceOf": "/IBMJMXConnectorREST/instanceOf",
  "fileTransfer": "/IBMJMXConnectorREST/file",
  "api": "/IBMJMXConnectorREST/api",
  "graph": "/IBMJMXConnectorREST/graph"
}

```

Please help me if there's anything wrong with configuration or is there anything else I'm missing.

I really appreciate your help as I don't have a clue what's the issue with my configuration.

Thank you  
Vj.

---

<div class="post-metadata">

**Author:** ![VIJAYP](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@VIJAYP](https://discuss.elastic.co/u/VIJAYP)\
**Post date:** [September 24, 2017, 2:49am UTC](https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193/2 "2017-09-24T02:49:40Z")

</div>

Hi @magnusbaeck can you please help me with the issue I explained above ?

---

<div class="post-metadata">

**Author:** ![VIJAYP](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@VIJAYP](https://discuss.elastic.co/u/VIJAYP)\
**Post date:** [September 26, 2017, 3:35pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193/3 "2017-09-26T15:35:25Z")

</div>

Hi, Can any one in this forum please help fixing this issue ?

---

<div class="post-metadata">

**Author:** ![VIJAYP](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@VIJAYP](https://discuss.elastic.co/u/VIJAYP)\
**Post date:** [September 28, 2017, 5:37pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193/4 "2017-09-28T17:37:53Z")

</div>

Hi @magnusbaeck do you mind to help solve this issue please ?

---

<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:** [October 26, 2017, 5:38pm UTC](https://discuss.elastic.co/t/logstash-http-poller-input-plugin-not-sending-output-to-elasticsearch/101193/5 "2017-10-26T17:38:07Z")

</div>

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