Help with lighttpd

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Post Reply
Digraph
Posts: 1
Joined: Sun Apr 05, 2026 1:24 am

Help with lighttpd

Post by Digraph »

Hi , Someone have a guide to setup with lighhtpd and not apache2. I have a raspberry4.
.
User avatar
jmichaelson
Posts: 394
Joined: Wed Aug 23, 2023 1:02 pm

Re: Help with lighttpd

Post by jmichaelson »

We don't have one specifically, but if I were going to do it, I'd start with this completely off the cuff and untested method

Configure lighttpd to send logs in the Apache combined log format (Google gave me this: https://www.google.com/search?q=lighttp ... &gws_rd=cr)
Restart lightttpd on the Pi
Start with the Apache logs as a base. Clone the Apache filter and change it to look for a new tag (lighttpd_access/error?)
Get rsyelog installed on your Pi if it isn't already there.
Use the same script as though you were setting up Apache Logs (from the Apache help page on your Log Server).
Change the conf file that gets generated to point to the lighttpd logs (and change apache_access/apache_error to whatever you used in the filter created above).
Restart rsyslogd on the Pi.

I'm glad to see that we have customers using other web servers than Apache. I'd like to add documentation to set these up into Nagios Log Server in the future (lighttpd and nginx come to mind). While I can't promise anything, I'll definitely look into it.
Please let us know if you have any other questions or concerns.

-Jason
justindev
Posts: 5
Joined: Mon May 05, 2025 3:49 am

Re: Help with lighttpd

Post by justindev »

I was actually thinking about trying lighttpd on a Raspberry Pi too because Apache feels a bit heavy for smaller setups. Whether Nagios Log Server correctly parses lighttpd access logs without heavily modifying the existing Apache filters? I’m wondering how compatible the formats really are in practice.sports games
User avatar
jmichaelson
Posts: 394
Joined: Wed Aug 23, 2023 1:02 pm

Re: Help with lighttpd

Post by jmichaelson »

I think the easiest thing to do there would be to configure lighttpd to send logs in the apache common log format, clone the existing apache filter and edit it for whatever changes you make for the process name in rsyslog, and then tweak the rsyslog config to point to the lighttpd logs with an appropriate change of process name from apache to lighttpd. Even easier would be to leave everything else as is and tweak the commands given to create an apache log source to point to the lighttpd log files instead.Either way youll' have to configure lighttpd to create logs in the apache common log format unless you want to tweak the filter's grok section.
Please let us know if you have any other questions or concerns.

-Jason
Post Reply