Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Log detail for errors could be improved
« previous
next »
Print
Pages: [
1
]
Author
Topic: Log detail for errors could be improved (Read 1521 times)
MandyBaxter
Newbie
Posts: 6
Karma: 0
Log detail for errors could be improved
«
on:
October 28, 2020, 01:11:17 pm »
Hi, folks.
As a recommendation, consider level-setting system logging details to at least cover anything provided via the gui to the user.
Details:
I just got a pop-up error msg, (Firewall / Aliases / Apply -> "Invalid Argument"). The underlying issue was simply that I'd exceeded the default value for Maximum Table Entries. But, the logging was not helpful to figuring that out. Rambling path to a fix included checking what I'd just changed, deleting the new alias, checking the gui logs (System / Log Files / Backend), checking syslog, checking /var/log/configd.log on the device itself. Nada. Simply, there's no system level logging pertaining to this error. Usually, system level error messages are _more_ verbose than what's presented to the user, not less. (And, definitely not nada.)
The Maximum Table Entries fix was per a suggestion found by search the forum for "invalid argument aliases." (Feature for the discussion forums is awesome, btw.)
On a related matter, there's an inconsistency in what's sent via syslog vs what's reported locally.
Logged messages per System / Log Files / Backend:
2020-10-28T06:51:26 configd.py[27022] [de4ddfb1-0764-4ead-9f14-106d4da058d5] Show log
2020-10-28T06:50:13 configd.py[27022] [50395608-ffd5-4d9d-871b-8961eb6e47d5] refresh url table aliases
2020-10-28T06:50:12 configd.py[27022] [6f3d93c0-e598-4c75-b534-7c26fdbb3fbb] Reloading filter
2020-10-28T06:50:12 configd.py[27022] OPNsense/Filter generated //usr/local/etc/filter_geoip.conf
2020-10-28T06:50:12 configd.py[27022] OPNsense/Filter generated //usr/local/etc/filter_tables.conf
2020-10-28T06:50:12 configd.py[27022] generate template container OPNsense/Filter
2020-10-28T06:50:11 configd.py[27022] [e1c3a420-7add-43f2-869e-6788310a512c] generate template OPNsense/Filter
/var/log/configd.log has about the same:
configd.log:Oct 28 06:50:11 opnsense configd.py[27022]: [e1c3a420-7add-43f2-869e-6788310a512c] generate template OPNsense/Filter
configd.log:Oct 28 06:50:12 opnsense configd.py[27022]: generate template container OPNsense/Filter
configd.log:Oct 28 06:50:12 opnsense configd.py[27022]: OPNsense/Filter generated //usr/local/etc/filter_tables.conf
configd.log:Oct 28 06:50:12 opnsense configd.py[27022]: OPNsense/Filter generated //usr/local/etc/filter_geoip.conf
configd.log:Oct 28 06:50:12 opnsense configd.py[27022]: [6f3d93c0-e598-4c75-b534-7c26fdbb3fbb] Reloading filter
configd.log:Oct 28 06:50:13 opnsense configd.py[27022]: [50395608-ffd5-4d9d-871b-8961eb6e47d5] refresh url table aliases
configd.log:Oct 28 06:51:26 opnsense configd.py[27022]: [de4ddfb1-0764-4ead-9f14-106d4da058d5] Show log
But, two items are absent per syslog:
user.log:Oct 28 06:50:11 opnsense.example.com configd.py[27022]: [e1c3a420-7add-43f2-869e-6788310a512c] generate template OPNsense/Filter
user.log:Oct 28 06:50:12 opnsense.example.com configd.py[27022]: generate template container OPNsense/Filter
user.log:Oct 28 06:50:12 opnsense.example.com configd.py[27022]: [6f3d93c0-e598-4c75-b534-7c26fdbb3fbb] Reloading filter
user.log:Oct 28 06:50:13 opnsense.example.com configd.py[27022]: [50395608-ffd5-4d9d-871b-8961eb6e47d5] refresh url table aliases
user.log:Oct 28 06:51:26 opnsense.example.com configd.py[27022]: [de4ddfb1-0764-4ead-9f14-106d4da058d5] Show log
NB: In /var/log/configd.log, at least, there are extra, leading spaces in the "message" aspect of the logged records for the two items missing in the syslog'd records. That might be tripping up some log parsing regular expression somewhere?
Regards,
Mandy Baxter
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Log detail for errors could be improved