# Logstash not sending data to elastic

**URL:** <https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176>\
**Category:** Logstash\
**Created:** [November 20, 2020, 6:06pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176 "2020-11-20T18:06:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DedSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedsec/32/79412_2.png) [@DedSec](https://discuss.elastic.co/u/DedSec)\
**Post date:** [November 20, 2020, 6:06pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/1 "2020-11-20T18:06:42Z")

</div>

Hello, I have a logstash file and when I am running the command sudo logstash -f bug.conf logstash starts but there is no data in ELK

This is my bug.conf file:

input {  
file {  
path =\> "/Users/siddharth/Desktop/program-list.json"  
type =\> "json"  
start\_position =\>" beginning"  
}  
}

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

output {  
elasticsearch {  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "bounty-programs-testing"  
}  
stdout {}  
}

Can you check what is wrong here ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 20, 2020, 6:08pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/2 "2020-11-20T18:08:10Z")

</div>

What is in the logstash logs? Does logstash produce an event on stdout?

---

<div class="post-metadata">

**Author:** ![DedSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedsec/32/79412_2.png) [@DedSec](https://discuss.elastic.co/u/DedSec)\
**Post date:** [November 20, 2020, 6:09pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/3 "2020-11-20T18:09:35Z")

</div>

Its a json file which have some multiple data like this:

{  
"program\_name": "(ISC)2",  
"policy\_url": "[https://bugcrowd.com/isc2](https://bugcrowd.com/isc2)",  
"contact\_url": "[https://bugcrowd.com/isc2/report](https://bugcrowd.com/isc2/report)",  
"launch\_date": "",  
"offers\_bounty": "no",  
"offers\_swag": false,  
"hall\_of\_fame": "",  
"safe\_harbor": "partial",  
"public\_disclosure": "",  
"pgp\_key": "",  
"hiring": "",  
"securitytxt\_url": "",  
"preferred\_languages": ""  
},

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 20, 2020, 6:28pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/4 "2020-11-20T18:28:10Z")

</div>

That does answer either of the questions that I asked.

---

<div class="post-metadata">

**Author:** ![DedSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedsec/32/79412_2.png) [@DedSec](https://discuss.elastic.co/u/DedSec)\
**Post date:** [November 20, 2020, 6:32pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/5 "2020-11-20T18:32:35Z")

</div>

Can you be more clear then ? I am new to all this so if possible can you ask it in easy language ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 20, 2020, 6:50pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/6 "2020-11-20T18:50:15Z")

</div>

What is printed to stdout when you run `sudo logstash -f bug.conf`?

---

<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:** [December 18, 2020, 6:50pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic/256176/7 "2020-12-18T18:50:23Z")

</div>

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