OPNsense Forum

English Forums => General Discussion => Topic started by: myksto on March 15, 2018, 04:06:13 pm

Title: Strange characters in Firewall Log (Line View)
Post by: myksto on March 15, 2018, 04:06:13 pm
This morning I turn up my pc and open my dashbord with Google Chrome and find a strange slowness in moving betweene menus. Besides I found strange characters in firewall logs (screenshot attached).
No problem with Firefox and IE.
Chrome has been updated last week, disabled all extensions, no luck.

Suggestions?
Title: Re: Slow Web Gui and strange characters in Log
Post by: elektroinside on March 15, 2018, 04:29:50 pm
Never saw anything similar.
Reboot OPNsense? Upgrade Chrome?
Title: Re: Slow Web Gui and strange characters in Log
Post by: myksto on March 15, 2018, 04:37:47 pm
Rebooted several times, ,manually deleted logs.
It's not a chrome issue.
I have other 2 OPNSense installations and they work with no problem and logs are shown perfectly.
Title: Re: Slow Web Gui and strange characters in Log
Post by: elektroinside on March 15, 2018, 05:11:45 pm
Is the "plain view" showing similar characters?
Title: Re: Slow Web Gui and strange characters in Log
Post by: myksto on March 15, 2018, 05:15:52 pm
No, plain view shows correct characters.
Title: Re: Slow Web Gui and strange characters in Log
Post by: myksto on March 15, 2018, 05:16:34 pm
After a while logs are clearly displayed.
I guess I found the "culprit".
Everything started when I cleared the firewall logs in "Firewall -> Log Files -> Plain View -> Clear logs".
It looks like the system need some data to be filled in the logs before displaying them correctly.
I've cleared logs in another OPNSense installation and it's the same behaviour: when logs are just cleared the webgui display them with strange characters and after a while everything is ok.

It only happens with Google Chrome.

I don't know whether it's a bug or not but it's a strange case.

Maybe some developer should take a look at it.

Thanks.
Title: Re: Slow Web Gui and strange characters in Log
Post by: elektroinside on March 15, 2018, 05:44:26 pm
Yep, by default, the logs are filled with null characters (if i'm not mistaken) up to 500kb/log. Maybe that's what you are seeing, although you're right, you shouldn't.
Title: Re: Slow Web Gui and strange characters in Log
Post by: myksto on March 16, 2018, 08:52:07 am
Yes, if you intend these "@", "@", etc. as null char you're right. The log file "filter.log" is full of those.
I noticed that system needs some time or some bytes (I don't know how many) to normally show the logs on "Firewall -> Log Files -> Line View". If you look for the logs in Line View just after you deleted them your visualization is just like the file I attached. When some logs populates the file everything turns ok.
Maybe there's a reason for that, I don't know.

Cheers.
Title: Re: Strange characters in Firewall Log (Line View)
Post by: franco on March 20, 2018, 07:53:32 am
Sounds like a problem in the new log reader code. It was rewritten in Python and may not always read the clog file correctly.
Title: Re: Strange characters in Firewall Log (Line View)
Post by: myksto on March 20, 2018, 11:35:58 am
Hi Franco.
It only happens just after you've cleared the log and few bytes are in.
When more data starts filling the log everything turns ok.

Thanks, Michele.