# Filebeat is not outputting logs to ElasticSearch, not even to Console

**URL:** <https://discuss.elastic.co/t/filebeat-is-not-outputting-logs-to-elasticsearch-not-even-to-console/210173>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 2, 2019, 12:06pm UTC](https://discuss.elastic.co/t/filebeat-is-not-outputting-logs-to-elasticsearch-not-even-to-console/210173 "2019-12-02T12:06:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali\_khalil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_khalil/32/57888_2.png) [@ali\_khalil](https://discuss.elastic.co/u/ali_khalil)\
**Post date:** [December 2, 2019, 12:06pm UTC](https://discuss.elastic.co/t/filebeat-is-not-outputting-logs-to-elasticsearch-not-even-to-console/210173/1 "2019-12-02T12:06:25Z")

</div>

@ElasticMaa @elastock @andrewkroh @steffens

Here is my filebeat.yml:

```
    filebeat.inputs:
       - type: log
        paths:
          - "/home/ubuntu/log/test_logs_json"
        enabled: true
        json.keys_under_root: true
        json.add_error_key: true
        json.message_key: log
        
        #setup.template:
        #enabled: true
        #name: test_template
        #pattern: 'test_template*'
    output.console:
            pretty: true
            #enabled: true
            #hosts: ['aws-vpc-elasticsearch-cluster']
            #index: "test_index"

    # Or
    output.elasticsearch:
             enabled: true
             hosts: ["https://vpc-elasticseacrh-cluster.amazonaws.com/"]
             index: "test_index"

```

And here is log file:

```
{"message": "adas asdsada asdsad"}
{"message": "new asdsada asdsad"}
{"message": "second asdsada asdsad"}
{"message": "third asdsada asdsad"}
{"message": "fourth asdsada asdsad"}
{"message": "fifth asdsada asdsad"}
{"message": "sixth asdsada asdsad"}
{"message": "seventh asdsada asdsad"}
{"message": "eighth asdsada asdsad"}

```

When I start or restart Filebeat service It does nothing and through one warning " filebeat is unable to load the ingest node", I think this warning is not the reason of filebeat not working.

---

<div class="post-metadata">

**Author:** ![faec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faec/32/46988_2.png) [@faec](https://discuss.elastic.co/u/faec)\
**Post date:** [December 6, 2019, 6:00pm UTC](https://discuss.elastic.co/t/filebeat-is-not-outputting-logs-to-elasticsearch-not-even-to-console/210173/2 "2019-12-06T18:00:47Z")

</div>

Hi,

One thing I notice though is that your hosts field says `vpc-elasticseacrh...` instead of `vpc-elasticsearch`. If that doesn't work you might also want to double check whether you need a port number, though I think that may not be needed in this case. Failing both of those, can you share the Filebeat logs? (`filebeat/logs/filebeat*`) That should show where the problem is.

---

<div class="post-metadata">

**Author:** ![ali\_khalil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_khalil/32/57888_2.png) [@ali\_khalil](https://discuss.elastic.co/u/ali_khalil)\
**Post date:** [December 9, 2019, 1:06pm UTC](https://discuss.elastic.co/t/filebeat-is-not-outputting-logs-to-elasticsearch-not-even-to-console/210173/3 "2019-12-09T13:06:12Z")

</div>

Thanks @faec

I had made my ElasticsSearch to public and using pipeline Filebeat \>\> Logstash \>\> AWS elasticsearch and its working if I make following settings:

```
elasticsearch {
   hosts => "https://search-es_domain.us-west-2.es.amazonaws.com:443"
   index => 'test_index_1'
   ssl => true
   ilm_enabled => false
} 

```

But if I make the ilm\_enabled to true, it does not work.

```
elasticsearch {
   hosts => "https://search-es_domain.us-west-2.es.amazonaws.com:443"
   index => 'test_index_1-%{+YYYY.MM.dd}'
   ssl => true
   ilm_enabled => true
} 

```

Do I need to enable ILM, so that Logstash can create indices daily?

---

<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:** [January 6, 2020, 1:06pm UTC](https://discuss.elastic.co/t/filebeat-is-not-outputting-logs-to-elasticsearch-not-even-to-console/210173/4 "2020-01-06T13:06:18Z")

</div>

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