# FileBeat is sending the data to LogStash but nothing appears on logstash logs/kibana/elastic log

**URL:** https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796
**Category:** Logstash
**Created:** [May 22, 2018, 11:20am UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796 "2018-05-22T11:20:54Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Suraj\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Suraj\_Sharma1](https://discuss.elastic.co/u/Suraj_Sharma1)
#### Post date: [May 22, 2018, 11:20am UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/1 "2018-05-22T11:20:54Z")

</div>

Hi All,

Am very new to ELK stack and we are implementing this in our project because of huge efforts involved in debugging and seeing the logs.

I have configured the filebeat on one of our servers and configuration goes like this : filebeat.yml

filebeat.prospectors:

- type: log  
enabled: true  
paths:
  - /comp/custom/sys/apache-tomcat/logs/NotificationProcessing/_log_  
multiline.pattern: ^[  
multiline.negate: true  
multiline.match: after  
filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: false  
setup.template.settings:  
index.number\_of\_shards: 3  
output.logstash:  
hosts: ["[complogserver.corp.com:5044](http://complogserver.corp.com:5044)"]  
logging.level: debug  
logging.to\_files: true

After i run the filebeat as below  
./filebeat -e -c filebeat.yml -d "\*"

I see some logs on the console as

2018-05-22T11:03:17.127Z DEBUG [logstash] logstash/async.go:142 2 events out of 2 events sent to logstash host [complogserver.corp.com:5044](http://complogserver.corp.com:5044). Continue sending

But nothing appears on the logstash/elastic logging.

Logstash is basically running on server [complogserver.corp.com](http://complogserver.corp.com) and here is the logs

[2018-05-22T10:58:35,112][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://elastic:xxxxxx@complogserver.corp.com:9200/](http://elastic:xxxxxx@complogserver.corp.com:9200/)"}  
[2018-05-22T10:58:35,169][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>6}  
[2018-05-22T10:58:35,170][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document \_type {:es\_version=\>6}  
[2018-05-22T10:58:35,171][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}  
[2018-05-22T10:58:35,176][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "version"=\>60001, "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date"}, "@version"=\>{"type"=\>"keyword"}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}}  
[2018-05-22T10:58:35,187][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["[//complogserver.corp.com:9200](https://complogserver.corp.com:9200)"]}  
[2018-05-22T10:58:35,600][INFO][logstash.inputs.beats] Beats inputs: Starting input listener {:address=\>"0.0.0.0:5044"}  
[2018-05-22T10:58:35,664][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x7ba87f1@/test/ARSystem/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:247 sleep\>"}  
[2018-05-22T10:58:35,674][INFO][org.logstash.beats.Server] Starting server on port: 5044  
[2018-05-22T10:58:35,684][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>["main"]}

Am stuck here from past 2 days with out a way to test where its going wrong.

Can some one please help me on this at the earliest.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 22, 2018, 1:22pm UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/2 "2018-05-22T13:22:23Z")

</div>

Please post all non-comment lines from filebeat.yml. **Format it as preformatted text using markdown notation or the `</>` toolbar button.**

---

<div class="post-metadata">

### Author: ![Suraj\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Suraj\_Sharma1](https://discuss.elastic.co/u/Suraj_Sharma1)
#### Post date: [May 23, 2018, 7:11am UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/3 "2018-05-23T07:11:38Z")

</div>

```
filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - /comp/custom/sys/apache-tomcat/logs/NotificationProcessing/log
  multiline.pattern: ^\[
  multiline.negate: true
  multiline.match: after
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 3
setup.kibana:
  host: "complogserver.corp.com:5601"
output.logstash:
  hosts: ["complogserver.corp.com:5044"]
logging.level: debug
logging.to_files: true
```

---

<div class="post-metadata">

### Author: ![Suraj\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Suraj\_Sharma1](https://discuss.elastic.co/u/Suraj_Sharma1)
#### Post date: [May 23, 2018, 7:14am UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/4 "2018-05-23T07:14:54Z")

</div>

Here is the simple logstash.conf which am using for logstash  
Log stash is running on the same server as that of elastic, But still instead of localhost am using the server name directly as [complogserver.corp.com](http://complogserver.corp.com)

```
input {
        beats
        {
        port => "5044"
      }
}
output {
    elasticsearch {
        hosts => ["complogserver.corp.om:9200"]
        user => elastic
        password => welcome1
    }
}
```

---

<div class="post-metadata">

### Author: ![Suraj\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Suraj\_Sharma1](https://discuss.elastic.co/u/Suraj_Sharma1)
#### Post date: [May 23, 2018, 11:55am UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/5 "2018-05-23T11:55:20Z")

</div>

Ok here is the intresting thing which i observed after playing around in kibana.

My Elastic Search Health Status is Yellow. And i have many indicies which have documents with in.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/2/8226bbf9ae026e5bcef8d65812c472e8a474c001.png)

These documents are also shown with status yellow because this requires multiple nodes to process this document.

But all i have is just one server and i want to use the same server for every thing.

How can i create another node on the same server and get all the documents finally to show up on kibana.

---

<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: [May 23, 2018, 12:18pm UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/6 "2018-05-23T12:18:08Z")

</div>

> [@Suraj\_Sharma1](#):
>
> But all i have is just one server and i want to use the same server for every thing.
> 
> How can i create another node on the same server and get all the documents finally to show up on kibana.

If you have a single node setup then you do not benefit from replicas. However, the cluster being Yellow will not prevent Kibana showing you documents from the index.

If having cluster status Green makes you happier then use a template. Something like

```
PUT _template/default0replicas
{
"template" : "*",
"settings" : {"number_of_replicas" : 0 }
}

```

But that will not determine whether documents show up in Kibana.

---

<div class="post-metadata">

### Author: ![Suraj\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Suraj\_Sharma1](https://discuss.elastic.co/u/Suraj_Sharma1)
#### Post date: [May 23, 2018, 12:43pm UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/7 "2018-05-23T12:43:41Z")

</div>

> [@Badger](#):
>
> { "template" : "\*", "settings" : {"number\_of\_replicas" : 0 } }

Thanks for the quick and honest reply.

I get the below response which i execute the request 🙂

```
{
    "error": {
        "root_cause": [
            {
                "type": "security_exception",
                "reason": "missing authentication token for REST request [/_template/default0replicas]",
                "header": {
                    "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
                }
            }
        ],
        "type": "security_exception",
        "reason": "missing authentication token for REST request [/_template/default0replicas]",
        "header": {
            "WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
        }
    },
    "status": 401
}

```

---

<div class="post-metadata">

### Author: ![Suraj\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Suraj\_Sharma1](https://discuss.elastic.co/u/Suraj_Sharma1)
#### Post date: [May 23, 2018, 12:57pm UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/8 "2018-05-23T12:57:18Z")

</div>

Ok So i disabled the security using the parameter `xpack.security.enabled: false`

Executed the above request which you had provided to set the replicas to 0

But still everything is still in Yellow and i still see the same message on Kibana.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9ed85b250cd008e5caba316dcb4266fbb6b15064.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c2689ca1e743bc6b64376ee11938b367183c59bf.png)

There is 18 indices clearly, But why is it not showing in discovery is the major question which i have now.

---

<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: [May 23, 2018, 1:11pm UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/9 "2018-05-23T13:11:07Z")

</div>

Tomorrow's indexes will be green.

You might want to check a few documents by doing "GET /logstash-2018.05.23/\_search".

In Kibana, either the time picker is set to a period that has no documents (e.g. if you are set to Last 15 minutes and all the documents are older than that) or the search you are doing matches no documents. If you are parsing timestamp and not configuring the timezone correctly that could lead to all documents being hours old.

---

<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: [June 20, 2018, 1:11pm UTC](https://discuss.elastic.co/t/filebeat-is-sending-the-data-to-logstash-but-nothing-appears-on-logstash-logs-kibana-elastic-log/132796/10 "2018-06-20T13:11:13Z")

</div>

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