# Logwatch and nginx logs

**URL:** <https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077>\
**Category:** NGINX\
**Created:** [March 29, 2011, 2:20am UTC](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077 "2011-03-29T02:20:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 29, 2011, 2:20am UTC](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077/1 "2011-03-29T02:20:19Z")

</div>

Hello,

Does anyone know how to configure logwatch to parse nginx logs instead  
of apache ones?

Thanks.  
Alex.

Posted at Nginx Forum:

> **[logwatch and nginx logs](https://forum.nginx.org/read.php?2,186488,186488#msg-186488)**
>
> Hello, Does anyone know how to configure logwatch to parse nginx logs instead of apache ones? Thanks. Alex.

---

<div class="post-metadata">

**Author:** ![alxsss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@alxsss](https://www.ruby-forum.com/u/alxsss)\
**Post date:** [March 29, 2011, 11:33am UTC](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077/2 "2011-03-29T11:33:59Z")

</div>

On Mon, Mar 28, 2011 at 08:19:54PM -0400, alxsss wrote:

> Hello,
> 
> Does anyone know how to configure logwatch to parse nginx logs instead  
> of apache ones?

Use default nginx access log file format, compatible with apache one:

```
access_log /path/to/access.log;

```

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![alxsss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@alxsss](https://www.ruby-forum.com/u/alxsss)\
**Post date:** [April 1, 2011, 3:01am UTC](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077/3 "2011-04-01T03:01:05Z")

</div>

Thanks Igor,

I had before access\_log /path/to/access.log main;

changed it to access\_log /path/to/access.log;  
Logwatch still sends emails with only disk space usage information.  
Looks like it cannot find nginx logs.

Thanks.  
Alex.

Posted at Nginx Forum:

> **[Re: logwatch and nginx logs](https://forum.nginx.org/read.php?2,186488,187268#msg-187268)**
>
> Hello, Does anyone know how to configure logwatch to parse nginx logs instead of apache ones? Thanks. Alex.

---

<div class="post-metadata">

**Author:** ![alxsss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@alxsss](https://www.ruby-forum.com/u/alxsss)\
**Post date:** [April 1, 2011, 8:21am UTC](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077/4 "2011-04-01T08:21:32Z")

</div>

On Thu, Mar 31, 2011 at 09:00:37PM -0400, alxsss wrote:

> Thanks Igor,
> 
> I had before access\_log /path/to/access.log main;
> 
> changed it to access\_log /path/to/access.log;  
> Logwatch still sends emails with only disk space usage information.  
> Looks like it cannot find nginx logs.

Sorry, I have no idea how to configure logwatch.

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**
