OPNsense Forum

English Forums => General Discussion => Topic started by: siga75 on October 02, 2019, 06:31:51 PM

Title: nginxg logs are bad
Post by: siga75 on October 02, 2019, 06:31:51 PM
I love OPNsense so much, but TBH nginx logs are terrible, for example

- they are not in reverse order, having the newest logs on top
- banned IP have epoch time format, which I have to execute a "date -d@xxxxxxxxxxx" on a linux to get a human readable value

I would love to have something like the really nice live view of the firewall log :)

Is it planned? Or am I missing something? (a plugin, or a setting somewhere)

Thanks and keep on the great work
Title: Re: nginxg logs are bad
Post by: fabian on October 02, 2019, 07:49:24 PM
I have nothing planned but reversing the log is easy. The epoch times probably need some bigger changes.
Title: Re: nginxg logs are bad
Post by: siga75 on October 02, 2019, 08:34:26 PM
thx for quick reply, looks like freebsd equivalent is with -r option

Linux:
# date -d@1569899580
Tue 01 Oct 2019 05:13:00 AM CEST


freeBSD:
# date -r 1569899580
Tue Oct  1 05:13:00 CEST 2019
Title: Re: nginxg logs are bad
Post by: fabian on October 03, 2019, 12:09:10 AM
we will need a javascript formatter so this will not help.
Title: Re: nginxg logs are bad
Post by: siga75 on October 04, 2019, 01:40:15 PM
well, no need to reinvent the wheel, I guess it's plenty of functions that do that googling