# Osquery snapshot

**URL:** <https://discuss.elastic.co/t/osquery-snapshot/124180>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 16, 2018, 12:01am UTC](https://discuss.elastic.co/t/osquery-snapshot/124180 "2018-03-16T00:01:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jin\_Qian](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jin\_Qian](https://discuss.elastic.co/u/Jin_Qian)\
**Post date:** [March 16, 2018, 12:01am UTC](https://discuss.elastic.co/t/osquery-snapshot/124180/1 "2018-03-16T00:01:10Z")

</div>

Hi, I am using filebeat to collect osquery **snapshot** log /var/log/osquery/osqueryd.snapshots.log.

Do I need to add above path to paths setting?  
Currently it only contains /var/log/osquery/osqueryd. **results**.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:** [March 16, 2018, 8:52am UTC](https://discuss.elastic.co/t/osquery-snapshot/124180/2 "2018-03-16T08:52:11Z")

</div>

Are you collecting the raw log as is or are you using a filebeat module? If both files have the same formatting, you can easily add both files to `paths` or use a glob.

---

<div class="post-metadata">

**Author:** ![Jin\_Qian](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jin\_Qian](https://discuss.elastic.co/u/Jin_Qian)\
**Post date:** [March 27, 2018, 3:01am UTC](https://discuss.elastic.co/t/osquery-snapshot/124180/3 "2018-03-27T03:01:12Z")

</div>

I am using filebeat module. Both files are formated as json per line.

The problem is filebeat osquery module does not document if I need include  
/var/log/osquery/osqueryd.snapshots.log in the paths config manually.

```
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths: ["/var/log/osquery/osqueryd.results.log*"]

```

So to ensure it works, I set the paths to   
`var.paths: ["/var/log/osquery/osqueryd.results.log*", "/var/log/osquery/osqueryd.snapshots.log*"]`

---

<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:** [April 24, 2018, 3:01am UTC](https://discuss.elastic.co/t/osquery-snapshot/124180/4 "2018-04-24T03:01:46Z")

</div>

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