# Adding site error logs to elastic stack

**URL:** <https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [February 27, 2022, 8:02pm UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363 "2022-02-27T20:02:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shorthills](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shorthills/32/60004_2.png) [@Shorthills](https://discuss.elastic.co/u/Shorthills)\
**Post date:** [February 27, 2022, 8:02pm UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363/1 "2022-02-27T20:02:33Z")

</div>

Hi,  
New user here.  
My installation is properly pulling error logs from: `/var/log/nginx/error.log*`

But how do I make it so it also pulls the individual error log data from the sites as in this pattern:  
`/var/log/nginx/*.error.log`

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 27, 2022, 9:01pm UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363/2 "2022-02-27T21:01:56Z")

</div>

You can go into the `modules.d/nginx.yml` and set the paths

```auto
- module: nginx
  # Access logs
  access:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    #var.paths:

  # Error logs
  error:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths: ["/path/to/log/nginx/error.log*", "/var/log/nginx/*.error.log"]

```

> **[Nginx module | Filebeat Reference \[8.0\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-nginx.html)**

---

<div class="post-metadata">

**Author:** ![Shorthills](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shorthills/32/60004_2.png) [@Shorthills](https://discuss.elastic.co/u/Shorthills)\
**Post date:** [February 28, 2022, 12:16am UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363/3 "2022-02-28T00:16:28Z")

</div>

Thank you. What's the full path? Sorry - the last time I used Elastic you had separate filebeat and metricbeat configs.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 28, 2022, 1:43am UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363/4 "2022-02-28T01:43:13Z")

</div>

Sorry, I'm confused Are you using Elastic Agent? Or Filebeat

What version are you on of the stack?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 28, 2022, 4:07pm UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363/5 "2022-02-28T16:07:02Z")

</div>

If you are using elastic Agent it would look like this..

 ![Screen Shot 2022-02-28 at 8.05.30 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e192c44610dd9840d1a4427e0b9dea284414099f.png)

---

<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:** [March 28, 2022, 4:07pm UTC](https://discuss.elastic.co/t/adding-site-error-logs-to-elastic-stack/298363/6 "2022-03-28T16:07:06Z")

</div>

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