# Failed to upload data in Elasticsearch

**URL:** <https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 12, 2017, 10:51am UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794 "2017-07-12T10:51:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![erion](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@erion](https://discuss.elastic.co/u/erion)\
**Post date:** [July 12, 2017, 10:51am UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/1 "2017-07-12T10:51:38Z")

</div>

Hi, i have this responds when i start filebeat.

> metrics.go:34: INFO No non-zero metrics in the last 30s  
> metrics.go:34: INFO No non-zero metrics in the last 30s  
> metrics.go:34: INFO No non-zero metrics in the last 30s

My filebeat.yml config

> filebeat.prospectors:  
> -input\_type: log  
> paths:
> 
> - /mnt/analisilog/www.access\_log  
> output.elasticsearch:  
> hosts: ["[search-analisilog-k2wpmymdimywzrcmyogbrfy.eu-west-1.es.amazonaws.com:443](http://search-analisilog-k2wpmymdimywzrcmyogbrfy.eu-west-1.es.amazonaws.com:443)"]  
> protocol: "https"  
> template.name: "filebeat"  
> template.path: "./filebeat.template.json"  
> template.overwrite: true

Thanks for replay

---

<div class="post-metadata">

**Author:** ![rachelkelly](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rachelkelly](https://discuss.elastic.co/u/rachelkelly)\
**Post date:** [July 12, 2017, 7:42pm UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/2 "2017-07-12T19:42:24Z")

</div>

Are you generating new data in `/mnt/analisilog/www.access_log`? If there is nothing new, it won't send anything. Notice that's INFO level - nothing is wrong. That is, unless new logs ARE being generated.

---

<div class="post-metadata">

**Author:** ![erion](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@erion](https://discuss.elastic.co/u/erion)\
**Post date:** [July 13, 2017, 7:57am UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/3 "2017-07-13T07:57:26Z")

</div>

Hi @rachelkelly, Before run filebeat i use this command:

> awslogs get apache www.cur.com.access\_log\_\* --start='7m ago' --end='5m ago' --aws-region eu-west-1 --profile UTAwsLogsRO \> /mnt/analisilog/www.access\_log

That command populate my file www.access\_log. So i just tried run that command and after run filebeat but the situation doesn't change.  
This is the full message when start filebeat:

> 2017/07/13 08:03:47.553189 beat.go:285: INFO Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]  
> 2017/07/13 08:03:47.553238 beat.go:186: INFO Setup Beat: filebeat; Version: 5.4.3  
> 2017/07/13 08:03:47.553350 output.go:258: INFO Loading template enabled. Reading template file: /etc/filebeat/filebeat.template.json  
> 2017/07/13 08:03:47.553457 metrics.go:23: INFO Metrics logging every 30s  
> 2017/07/13 08:03:47.553491 output.go:269: INFO Loading template enabled for Elasticsearch 2.x. Reading template file: /etc/filebeat/filebeat.template-es2x.json  
> 2017/07/13 08:03:47.553999 output.go:281: INFO Loading template enabled for Elasticsearch 6.x. Reading template file: /etc/filebeat/filebeat.template-es6x.json  
> 2017/07/13 08:03:47.554569 client.go:123: INFO Elasticsearch url: [https://search-analisilog-k2ymrubrfy.eu-west-1.es.amazonaws.com:443](https://search-analisilog-k2ymrubrfy.eu-west-1.es.amazonaws.com:443)  
> 2017/07/13 08:03:47.554620 outputs.go:108: INFO Activated elasticsearch as output plugin.  
> 2017/07/13 08:03:47.554711 publish.go:295: INFO Publisher name: wind-tools  
> 2017/07/13 08:03:47.554817 async.go:63: INFO Flush Interval set to: 1s  
> 2017/07/13 08:03:47.554836 async.go:64: INFO Max Bulk Size set to: 50  
> 2017/07/13 08:03:47.555018 beat.go:221: INFO filebeat start running.  
> 2017/07/13 08:03:47.555104 registrar.go:85: INFO Registry file set to: /var/lib/filebeat/registry  
> 2017/07/13 08:03:47.555181 registrar.go:106: INFO Loading registrar data from /var/lib/filebeat/registry  
> 2017/07/13 08:03:47.555324 registrar.go:123: INFO States Loaded from registrar: 1  
> 2017/07/13 08:03:47.555355 crawler.go:38: INFO Loading Prospectors: 1  
> 2017/07/13 08:03:47.555367 registrar.go:236: INFO Starting Registrar  
> 2017/07/13 08:03:47.555490 prospector\_log.go:65: INFO Prospector with previous states loaded: 1  
> 2017/07/13 08:03:47.555571 prospector.go:124: INFO Starting prospector of type: log; id: 18068218180201798470  
> 2017/07/13 08:03:47.555610 crawler.go:58: INFO Loading and starting Prospectors completed. Enabled prospectors: 1  
> 2017/07/13 08:03:47.555647 spooler.go:63: INFO Starting spooler: spool\_size: 2048; idle\_timeout: 5s  
> 2017/07/13 08:03:47.555467 sync.go:41: INFO Start sending events to output  
> 2017/07/13 08:04:17.553777 metrics.go:39: INFO Non-zero metrics in the last 30s: publish.events=1 registrar.states.current=1 registrar.states.update=1 registrar.writes=1

Thanks for replay

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [July 13, 2017, 5:49pm UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/4 "2017-07-13T17:49:12Z")

</div>

The log is incomplete. Is there a failure message coming up? With incomplete logs my guess: filebeat can not properly connect to your elasticsearch host.

---

<div class="post-metadata">

**Author:** ![rachelkelly](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rachelkelly](https://discuss.elastic.co/u/rachelkelly)\
**Post date:** [July 13, 2017, 10:41pm UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/5 "2017-07-13T22:41:39Z")

</div>

> [@erion](#):
>
> `2017/07/13 08:04:17.553777 metrics.go:39: INFO Non-zero metrics in the last 30s: publish.events=1 registrar.states.current=1 registrar.states.update=1 registrar.writes=1`

Note that it's telling you the metrics it's sending - "non-zero metrics" here means non-empty metrics, as far as I can see. Here, it's not telling you "sending empty," it's telling you it's sending SOMEthing. You may be able to query elasticsearch for the contents of your access\_log.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [July 14, 2017, 2:54pm UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/6 "2017-07-14T14:54:13Z")

</div>

metrics don't say anything was shipped.

---

<div class="post-metadata">

**Author:** ![erion](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@erion](https://discuss.elastic.co/u/erion)\
**Post date:** [July 17, 2017, 9:03am UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/7 "2017-07-17T09:03:10Z")

</div>

I don't understand where is the problem

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [July 17, 2017, 11:11pm UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/8 "2017-07-17T23:11:00Z")

</div>

Do you have a more complete log? The log is somewhat 'incomplete' (have filebeat run for a little longer). In the log provided is no indicator wether data has been shipped or failed.

Also enable debug, to get some more details? Have you checked the log for errors?

---

<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:** [August 14, 2017, 11:11pm UTC](https://discuss.elastic.co/t/failed-to-upload-data-in-elasticsearch/92794/9 "2017-08-14T23:11:24Z")

</div>

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