# Logs are not generated for logstash

**URL:** <https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672>\
**Category:** Logstash\
**Created:** [May 10, 2016, 2:50pm UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672 "2016-05-10T14:50:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roshan\_r](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_r/32/9760_2.png) [@Roshan\_r](https://discuss.elastic.co/u/Roshan_r)\
**Post date:** [May 10, 2016, 2:50pm UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/1 "2016-05-10T14:50:25Z")

</div>

I am using filebeat to ship the logs to another server where my logstash is residing.

Starting the logstash shows like this:  
[root@astroELK bin]# ./logstash -f /etc/logstash/conf.d/astro\_pdl.conf  
--- jar coordinate com.fasterxml.jackson.core:jackson-annotations already loaded with version 2.7.1 - omit version 2.7.0  
--- jar coordinate com.fasterxml.jackson.core:jackson-databind already loaded with version 2.7.1 - omit version 2.7.1-1  
Settings: Default pipeline workers: 2  
Pipeline main started

Inside /var/log/logstash/ no logs are generated. What could be the reason here?

---

<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:** [May 11, 2016, 11:29pm UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/2 "2016-05-11T23:29:00Z")

</div>

It'll only logs things as required.  
What logs are you expecting?

---

<div class="post-metadata">

**Author:** ![Roshan\_r](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_r/32/9760_2.png) [@Roshan\_r](https://discuss.elastic.co/u/Roshan_r)\
**Post date:** [May 12, 2016, 10:48am UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/3 "2016-05-12T10:48:35Z")

</div>

Mark.. I wanted to verify whether filbeat sent the logs to logstash and logstash processed the logs before giving it to ElasticSearch.

---

<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:** [May 12, 2016, 9:33pm UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/4 "2016-05-12T21:33:45Z")

</div>

Then use the ES APIs or Kibana.

Take a look at the `_cat` APIs in ES for examples of how to see what indices exist and what is in them.

---

<div class="post-metadata">

**Author:** ![Roshan\_r](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_r/32/9760_2.png) [@Roshan\_r](https://discuss.elastic.co/u/Roshan_r)\
**Post date:** [May 13, 2016, 9:57am UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/5 "2016-05-13T09:57:43Z")

</div>

Mark  
I am getting  
2016-05-12T10:51:43Z CRIT Unable to publish events to console: write /dev/stdout: invalid argument  
2016-05-12T10:51:43Z ERR Error sending/writing event: write /dev/stdout: invalid argument

in mybeat logs. It clearly mention that filebeat is not sending teh logs to logstash here. Any idea where could be the problem in filebeat here?

---

<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:** [May 13, 2016, 1:59pm UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/6 "2016-05-13T13:59:30Z")

</div>

Perhaps if you post your configs we can provide better assistance.

---

<div class="post-metadata">

**Author:** ![Roshan\_r](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_r/32/9760_2.png) [@Roshan\_r](https://discuss.elastic.co/u/Roshan_r)\
**Post date:** [May 16, 2016, 8:27am UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/7 "2016-05-16T08:27:05Z")

</div>

Warkolm... I can see only 1 config file used for logstash.

input {  
beats {  
port=\>5044  
}  
}  
output {  
elasticsearch {  
hosts =\> ["10.209.26.147:9200"]  
manage\_template =\> false  
}  
}

I dont see a logs folder or any other config file for logs. Please help me.

---

<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:** [July 6, 2017, 4:57am UTC](https://discuss.elastic.co/t/logs-are-not-generated-for-logstash/49672/8 "2017-07-06T04:57:30Z")

</div>


