# Logstash on kubernetes: not seeing any output

**URL:** <https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962>\
**Category:** Logstash\
**Created:** [January 26, 2017, 11:31pm UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962 "2017-01-26T23:31:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronakg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronakg/32/14961_2.png) [@ronakg](https://discuss.elastic.co/u/ronakg)\
**Post date:** [January 26, 2017, 11:31pm UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962/1 "2017-01-26T23:31:28Z")

</div>

Hi,

I'm trying to bring up Logstash on our kubernetes cluster. I'm using the 5.1.2-alpine Docker image and bringing up the Logstash pod.

I'm seeing that the input/output configuration is being parsed properly, but I don't see output on either stdout or elasticsearch.

Input:

```
input {
  file {
    path => "/var/log/containers/*.log"
  }
}

```

Output:

```
output {
  elasticsearch { hosts => ["172.19.215.224:9200"] }
  stdout { codec => rubydebug }
}

```

I've gone through lot of discussion forums and have tried lot of things, but still no luck.

I see logs from logstash on stdout like following:

> 23:30:51.087 [pool-2-thread-3] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:51 +0000}  
> 23:30:52.088 [pool-2-thread-5] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:52 +0000}  
> 23:30:52.407 [Ruby-0-Thread-15: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:489] DEBUG logstash.pipeline - Pushing flush onto pipeline  
> 23:30:53.089 [pool-2-thread-3] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:53 +0000}  
> 23:30:54.090 [pool-2-thread-6] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:54 +0000}  
> 23:30:55.092 [pool-2-thread-2] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:55 +0000}  
> 23:30:56.093 [pool-2-thread-8] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:56 +0000}  
> 23:30:57.094 [pool-2-thread-6] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:57 +0000}  
> 23:30:57.407 [Ruby-0-Thread-15: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:489] DEBUG logstash.pipeline - Pushing flush onto pipeline  
> 23:30:58.096 [pool-2-thread-8] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:58 +0000}  
> 23:30:59.097 [pool-2-thread-1] DEBUG logstash.instrument.collector - Collector: Sending snapshot to observers {:created\_at=\>2017-01-26 23:30:59 +0000}

---

<div class="post-metadata">

**Author:** ![ronakg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronakg/32/14961_2.png) [@ronakg](https://discuss.elastic.co/u/ronakg)\
**Post date:** [January 27, 2017, 7:19pm UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962/2 "2017-01-27T19:19:16Z")

</div>

Any ideas here?

Do I need to post some more data?

TIA.

---

<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:** [January 29, 2017, 4:17am UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962/3 "2017-01-29T04:17:39Z")

</div>

> [@ronakg](#):
>
> I don't see output on either stdout or elasticsearch.

Nothing in stdout may indicate nothing going into the input?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 29, 2017, 7:46am UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962/4 "2017-01-29T07:46:14Z")

</div>

As you have not specified [start\_position](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-start_position) for the file input, log files will be tailed. Are the being written to once Logstash has started?

---

<div class="post-metadata">

**Author:** ![ronakg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronakg/32/14961_2.png) [@ronakg](https://discuss.elastic.co/u/ronakg)\
**Post date:** [January 29, 2017, 10:25pm UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962/5 "2017-01-29T22:25:36Z")

</div>

Thanks for replying @warkolm and @Christian_Dahlqvist. There's nothing indicating in stdout that there's any error with either input or output. I even see messages on stdout saying connection to elasticsearch is fine. Also, the containers are constantly writing messages to the log files. So this is not an issue about start\_position.

Strange part is that I ran logstash outside kubernetes pod on the same machine with same configuration and it works fine. I see logs on stdout as well as elasticsearch.

What should I investigate here?

---

<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:** [February 26, 2017, 10:26pm UTC](https://discuss.elastic.co/t/logstash-on-kubernetes-not-seeing-any-output/72962/6 "2017-02-26T22:26:13Z")

</div>

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