# Filebeat running as root, but not ingesting all logs

**URL:** https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583
**Category:** Beats
**Tags:** filebeat
**Created:** [November 6, 2020, 9:24pm UTC](https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583 "2020-11-06T21:24:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![droidus](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@droidus](https://discuss.elastic.co/u/droidus)
#### Post date: [November 6, 2020, 9:24pm UTC](https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583/1 "2020-11-06T21:24:36Z")

</div>

I am running Ubuntu, and I noticed in Kibana, it is only monitoring two files: kern.log and auth.log. Here are what the file permissions look like: -rw-r----- 1 syslog adm. Doing a ps aux, I get this:  
root 17888 0.1 0.2 1758840 90964 ? SLsl Nov05 2:06 /usr/share/filebeat/bin/filebeat --environment systemd -c /etc/filebeat/filebeat.yml --path.home /usr/share/filebeat --path.config /etc/filebeat --path.data /var/lib/filebeat --path.logs /var/log/filebeat

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [November 9, 2020, 8:23am UTC](https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583/2 "2020-11-09T08:23:56Z")

</div>

Not sure if I understand your problem. What kind of files would you like to monitor?

---

<div class="post-metadata">

### Author: ![droidus](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@droidus](https://discuss.elastic.co/u/droidus)
#### Post date: [November 12, 2020, 7:12pm UTC](https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583/3 "2020-11-12T19:12:56Z")

</div>

I figured it out. I was monitoring /var/log/_.log, and was trying to figure out why files like syslog were not being picked up.  
Is there a way to monitor inside of directories too, like /var/log/apt/_?

---

<div class="post-metadata">

### Author: ![savethebyte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/savethebyte/32/62742_2.png) [@savethebyte](https://discuss.elastic.co/u/savethebyte)
#### Post date: [November 12, 2020, 9:20pm UTC](https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583/4 "2020-11-12T21:20:15Z")

</div>

Yes. I recommend you create a separate input. In the inputs section of filebeat.yml, add something like this:

```auto
filebeat.inputs:

- type: log
  enabled: true
  paths:
    - /var/log/apt/*filename*

```

---

<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 10, 2020, 11:20pm UTC](https://discuss.elastic.co/t/filebeat-running-as-root-but-not-ingesting-all-logs/254583/5 "2020-12-10T23:20:23Z")

</div>

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