# Filebeat Error while initializing input

**URL:** <https://discuss.elastic.co/t/filebeat-error-while-initializing-input/188791>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 3, 2019, 6:19pm UTC](https://discuss.elastic.co/t/filebeat-error-while-initializing-input/188791 "2019-07-03T18:19:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bizomb](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bizomb](https://discuss.elastic.co/u/bizomb)\
**Post date:** [July 3, 2019, 6:19pm UTC](https://discuss.elastic.co/t/filebeat-error-while-initializing-input/188791/1 "2019-07-03T18:19:50Z")

</div>

I am trying to get data to send logs to kibana and when try to run filebeat -e -c filebeat.yml -d "publish" or filebeat -e I get error Exiting: Error interpreting the template of the input: template: text:3:22: executing "text" at \<.paths\>: range can't iterate over /mypath/log/myfile.log. How can I populate the file to create a dashboard? Is there anything else I need to format in the module directory

myfile logs snippet  
"time",host,"number\_a","number\_b","error","msg","cc1"

for my logstash.yml for filebeat

- module: logstash

---

<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:** [July 5, 2019, 9:06pm UTC](https://discuss.elastic.co/t/filebeat-error-while-initializing-input/188791/2 "2019-07-05T21:06:25Z")

</div>

Welcome! When pasting configurations, please add triple-tildes (```) at the beginning and end to preserve formatting, otherwise it's hard to tell real errors apart from forum-post formatting 🙂 In this case it looks like you probably forgot the brackets around your paths parameter. try:

```auto
  var.paths: ["/mypath/log/myfile.log"]

```

If that doesn't fix it, can you repaste your `filebeat.yml` with the formatting preserved? Thanks!

---

<div class="post-metadata">

**Author:** ![bizomb](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bizomb](https://discuss.elastic.co/u/bizomb)\
**Post date:** [July 10, 2019, 4:23pm UTC](https://discuss.elastic.co/t/filebeat-error-while-initializing-input/188791/3 "2019-07-10T16:23:43Z")

</div>

Thanks i no longer receive that error however now I see this error.

filebeat -e  
2019-07-10T09:19:08.175-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:08.264-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:08.372-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:08.607-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:08.898-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:08.952-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:09.050-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...  
2019-07-10T09:19:09.343-0700 ERROR registrar/registrar.go:374 Writing of registry returned error: rename /var/lib/filebeat/registry/filebeat/data.json.new /var/lib/filebeat/registry/filebeat/data.json: no such file or directory. Continuing...

However when I run the below command  
ls -lrth /var/lib/filebeat/registry/filebeat/data.json  
-rw-------. 1 root root 14K Jul 10 09:19 /var/lib/filebeat/registry/filebeat/data.json

Let me know if I need to add anything to filebeat config

---

<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 7, 2019, 4:23pm UTC](https://discuss.elastic.co/t/filebeat-error-while-initializing-input/188791/4 "2019-08-07T16:23:58Z")

</div>

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