# Filebeat unable to harvest ISC Bind logs

**URL:** <https://discuss.elastic.co/t/filebeat-unable-to-harvest-isc-bind-logs/207189>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 8, 2019, 11:25pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-harvest-isc-bind-logs/207189 "2019-11-08T23:25:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pestevao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pestevao/32/44138_2.png) [@pestevao](https://discuss.elastic.co/u/pestevao)\
**Post date:** [November 8, 2019, 11:25pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-harvest-isc-bind-logs/207189/1 "2019-11-08T23:25:16Z")

</div>

Hi,

I'm trying to use filebeat to ship ISC Bind logs - heavy writed and aroung 8Gb at the day end - to logstash, grok them and finally store it's in Elastic.

In Filebeat config I have:

- type: log  
enabled: true  
paths:
  - /var/log/named/queries.log  
fields:  
document\_type: bind  
fields\_under\_root: true

The Bind logs are owned by named:named and permissions rw-r--r--

I'm able to tail -f them and see the flow and the queries in realtime.

But when I try to start filebeat with debug mode onde I see this messages:

2019-11-08T23:18:46.046Z INFO crawler/crawler.go:72 Loading Inputs: 3  
2019-11-08T23:18:46.046Z DEBUG [processors] processors/processor.go:66 Processors:  
2019-11-08T23:18:46.047Z DEBUG [input] log/config.go:201 recursive glob enabled  
2019-11-08T23:18:46.047Z DEBUG [input] log/input.go:147 exclude\_files: . Number of stats: 0  
2019-11-08T23:18:46.047Z DEBUG [input] log/input.go:168 input with previous states loaded: 0  
2019-11-08T23:18:46.047Z INFO log/input.go:138 Configured paths: [/var/log/named/queries.log]  
2019-11-08T23:18:46.047Z INFO input/input.go:114 Starting input of type: log; ID: 5379400643241004272  
2019-11-08T23:18:46.047Z DEBUG [processors] processors/processor.go:66 Processors:  
2019-11-08T23:18:46.048Z INFO crawler/crawler.go:139 Stopping Crawler  
2019-11-08T23:18:46.048Z INFO crawler/crawler.go:149 Stopping 1 inputs  
2019-11-08T23:18:46.048Z DEBUG [registrar] registrar/registrar.go:278 Starting Registrar  
2019-11-08T23:18:46.048Z DEBUG [input] log/input.go:174 Start next scan  
2019-11-08T23:18:46.048Z INFO log/input.go:453 Scan aborted because input stopped.  
2019-11-08T23:18:46.048Z DEBUG [input] log/input.go:195 input states cleaned up. Before: 0, After: 0, Pending: 0  
2019-11-08T23:18:46.048Z INFO input/input.go:149 input ticker stopped  
2019-11-08T23:18:46.048Z INFO input/input.go:167 Stopping Input: 5379400643241004272  
2019-11-08T23:18:46.048Z DEBUG [publisher] pipeline/client.go:149 client: closing acker  
2019-11-08T23:18:46.048Z DEBUG [publisher] pipeline/client.go:151 client: done closing acker  
2019-11-08T23:18:46.048Z DEBUG [publisher] pipeline/client.go:155 client: cancelled 0 events  
2019-11-08T23:18:46.048Z INFO crawler/crawler.go:165 Crawler stopped  
2019-11-08T23:18:46.048Z INFO registrar/registrar.go:367 Stopping Registrar  
2019-11-08T23:18:46.048Z INFO registrar/registrar.go:293 Ending Registrar  
2019-11-08T23:18:46.048Z DEBUG [registrar] registrar/registrar.go:411 Write registry file: /var/lib/filebeat/registry/filebeat/data.json  
2019-11-08T23:18:46.049Z DEBUG [publisher] pipeline/client.go:149 client: closing acker  
2019-11-08T23:18:46.050Z DEBUG [publisher] pipeline/client.go:151 client: done closing acker  
2019-11-08T23:18:46.050Z DEBUG [publisher] pipeline/client.go:155 client: cancelled 0 events  
2019-11-08T23:18:46.107Z DEBUG [registrar] registrar/registrar.go:404 Registry file updated. 0 states written.  
2019-11-08T23:18:46.111Z INFO [monitoring] log/log.go:152 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":70,"time":{"ms":76}},"total":{"ticks":760,"time":{"ms":775},"value":760},"user":{"ticks":690,"time":{"ms":699}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":8},"info":{"ephemeral\_id":"be77e323-0663-4d5b-b0b9-a0b26ae3b8e2","uptime":{"ms":45117}},"memstats":{"gc\_next":4564400,"memory\_alloc":3270216,"memory\_total":47457008,"rss":40169472}},"filebeat":{"harvester":{"open\_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"logstash"},"pipeline":{"clients":0,"events":{"active":0}}},"registrar":{"states":{"current":0},"writes":{"success":1,"total":1}},"system":{"cpu":{"cores":1},"load":{"1":0.31,"15":0.08,"5":0.16,"norm":{"1":0.31,"15":0.08,"5":0.16}}}}}}  
2019-11-08T23:18:46.111Z INFO [monitoring] log/log.go:153 Uptime: 45.121468366s  
2019-11-08T23:18:46.111Z INFO [monitoring] log/log.go:130 Stopping metrics logging.  
2019-11-08T23:18:46.111Z DEBUG [monitoring] pipeline/client.go:149 client: closing acker  
2019-11-08T23:18:46.111Z DEBUG [monitoring] pipeline/client.go:151 client: done closing acker  
2019-11-08T23:18:46.111Z DEBUG [monitoring] pipeline/client.go:155 client: cancelled 0 events  
2019-11-08T23:18:46.111Z DEBUG [monitoring] pipeline/pipeline.go:242 close pipeline  
2019-11-08T23:18:46.111Z INFO instance/beat.go:401 filebeat stopped.  
2019-11-08T23:18:46.111Z ERROR instance/beat.go:802 Exiting: Error while initializing input: No paths were defined for input accessing 'filebeat.inputs.1'  
Exiting: Error while initializing input: No paths were defined for input accessing 'filebeat.inputs.1'

And the service keeps on restarting and restarting and restarting.

In Kibana / Xpack monitoring I see system infromations but no events or bytes registered.

I've tried tail\_files, encoding and some more options but with no success at all.

Can you please help me?

Thank you, Pedro

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [November 13, 2019, 2:03pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-harvest-isc-bind-logs/207189/2 "2019-11-13T14:03:45Z")

</div>

Hi @pestevao,

From the debug lines, it would seem like there is an issue with your config. Could you please paste it without formatting (use the preformatted text button)? This way we can analize what's going on.

Best regards

---

<div class="post-metadata">

**Author:** ![pestevao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pestevao/32/44138_2.png) [@pestevao](https://discuss.elastic.co/u/pestevao)\
**Post date:** [November 20, 2019, 4:33pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-harvest-isc-bind-logs/207189/3 "2019-11-20T16:33:01Z")

</div>

You're right @exekias!

I have o typo after the first - type: log.

Another lost - sign but no configuration take filebeat to expect another insctructions.

Removed it and all was solved!

So many times looking at .yml file and...

Thank you for pointing me out.

---

<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 18, 2019, 4:33pm UTC](https://discuss.elastic.co/t/filebeat-unable-to-harvest-isc-bind-logs/207189/4 "2019-12-18T16:33:03Z")

</div>

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