# Linux Logs from Elasticsearch are not showing in Discover tab

**URL:** <https://discuss.elastic.co/t/linux-logs-from-elasticsearch-are-not-showing-in-discover-tab/207866>\
**Category:** Elasticsearch\
**Created:** [November 14, 2019, 10:54am UTC](https://discuss.elastic.co/t/linux-logs-from-elasticsearch-are-not-showing-in-discover-tab/207866 "2019-11-14T10:54:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Kunjir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohit_kunjir/32/56602_2.png) [@Mohit\_Kunjir](https://discuss.elastic.co/u/Mohit_Kunjir)\
**Post date:** [November 14, 2019, 10:54am UTC](https://discuss.elastic.co/t/linux-logs-from-elasticsearch-are-not-showing-in-discover-tab/207866/1 "2019-11-14T10:54:24Z")

</div>

Hello,

1. Kibana's Discover tab not showing the data comming from Filebeat on its corresponding Elasticsearch index pattern. Tried ingesting logs into a new index with different index pattern.

2. The logs are visible on Logstash stdout & via a querry in Dev Tools, indicating that index is getting populated.

3. Index Management shows that the particular index queried is present.

4. Logs shipping pipeline:

Metricbeat(Port 5044), Winlogbeat(Port 5044) & Filebeat(Port 5045) --\> Logstash --\> Elasticsearch \<-- Kibana

1. Logs from windows system index (ingested using Winlogbeat into different a index using the same Logstash pipeline) are visible on both stdout and in discover tab, indicating that Logstash is not the culprit.

Logstash Pipeline:

```
input 
{

beats {
    id => "internal"
    port => 5045
  }

beats {
    id => "mylumberjack"
    codec => json
    port => 5044
    ssl_certificate => "/etc/logstash/certs/logstash-vm0/instance.crt"
    ssl_key => "/etc/logstash/certs/logstash-vm0/instance.pk8"
    ssl => true
  }
  
}

filter
	{
			
			if [metricset][module] == "windows"
			{	
				mutate
				{
					add_field => { "index" => "metrics-windows-%{+YYYY.MM.dd}" }
					add_field => { "pipeline" => "default" }
				}
			}
			if [metricset][module] == "system"
			{	
				mutate
				{
					add_field => { "index" => "metrics-system-%{+YYYY.MM.dd}" }
					add_field => { "pipeline" => "default" }
				}
			}
            if [type] == "wineventlog"
            {
               mutate
    		   {
    			    add_field => { "index" => "winlogbeat-%{[beat][version]}-%{+YYYY.MM.dd}" }
    				add_field => { "pipeline" => "default" }
    		   }
            }
			if [fileset][module] == "apache2"
			{
				if [fileset][name] == "access"
				{		
					mutate
					{
						add_field => { "index" => "logs-apache-%{+YYYY.MM.dd}" }
						add_field => { "pipeline" => "logs-apache-access-ingest" }
					}
				}
				else
				{
					mutate
					{
						add_field => { "index" => "logs-apache-%{+YYYY.MM.dd}" }
						add_field => { "pipeline" => "logs-apache-error-ingest" }
					}
				}
			}
	
			if [fileset][module] == "mysql"
			{
				if [fileset][name] == "error"
				{	
					mutate
					{
						add_field => { "index" => "logs-mysql-%{+YYYY.MM.dd}" }
						add_field => { "pipeline" => "logs-mysql-error-ingest" }
					}						
				}
				else
				{
					mutate
					{
						add_field => { "index" => "logs-mysql-%{+YYYY.MM.dd}" }
						add_field => { "pipeline" => "logs-mysql-slowlog-ingest" }
					}	
				}
			}
	
			if [fileset][module] == "system"
			{
				if [fileset][name] == "auth"
				{		
					mutate
					{
						add_field => { "index" => "logs-system-%{+YYYY.MM.dd}" }
						add_field => { "pipeline" => "logs-system-auth-ingest" }
					}
				}
				else
				{
					mutate
					{
						add_field => { "index" => "logs-system-%{+YYYY.MM.dd}" }
						add_field => { "pipeline" => "logs-system-syslog-ingest" }
					}
				}
			}		
	}

output 
{
  	stdout { codec => rubydebug }
 
	elasticsearch 
	{
		hosts => ["https://elasticsearch-ingest-vm0:9200"]
		ssl => true
		ssl_certificate_verification => true
		cacert => '/etc/logstash/certs/elasticsearch-master-vm0/ca.crt'
		user => "logstash_writer"
		password => " *********"	
		manage_template => false
		pipeline => "%{pipeline}"
		index => "%{index}"
	}
}

```

Attached snapshot of Dev tools query and Discover tab.

Dev Tools

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/0/6031e148af1d7674ef34d1050e1b67c083604a91.png)

Discover Tab

 ![Capture2](https://us1.discourse-cdn.com/elastic/original/3X/7/2/72eface4c0facbb5b7c07f6b19d1479f95f2aff7.png)

---

<div class="post-metadata">

**Author:** ![Mohit\_Kunjir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohit_kunjir/32/56602_2.png) [@Mohit\_Kunjir](https://discuss.elastic.co/u/Mohit_Kunjir)\
**Post date:** [November 18, 2019, 12:11pm UTC](https://discuss.elastic.co/t/linux-logs-from-elasticsearch-are-not-showing-in-discover-tab/207866/2 "2019-11-18T12:11:00Z")

</div>

**SOLUTION**

Issue was with the timezone of the machines on which the beats were running. Those machines were in a timezone which was ahead from the timezone on which elasticsearch was running. Hence, although logs were being ingested into elasticsearch, the query `Last 15 minutes` returned no results. However, when queried for `today` logs, logs were seen having @timestamp field set to a time which was ahead from the time on elasticsearch VMs.  
So as a solution, ensure the timezone of all the machines is same (preferably UTC).

---

<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 16, 2019, 12:11pm UTC](https://discuss.elastic.co/t/linux-logs-from-elasticsearch-are-not-showing-in-discover-tab/207866/3 "2019-12-16T12:11:02Z")

</div>

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