nginxg logs are bad

Started by siga75, October 02, 2019, 06:31:51 PM

Previous topic - Next topic
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
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet

I have nothing planned but reversing the log is easy. The epoch times probably need some bigger changes.

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
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet

we will need a javascript formatter so this will not help.

well, no need to reinvent the wheel, I guess it's plenty of functions that do that googling
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet