Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ccesario

#31
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 19, 2018, 11:29:25 AM
Hi @fabian,

Nice to know that API it os ok.
Well, I could suggest 100 lines by default with a dropdown to choose more or less linesand maybe a checkbox to disable or enable auto refresh. (It is only a suggestion)

Regards
Carlos
#32
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 18, 2018, 06:01:50 PM
File uploaded.
#33
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 18, 2018, 12:39:03 PM
Hi Fabian,
Could you please provide me an email to snd the file?
Best regards
#34
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 17, 2018, 09:36:36 PM
Well, I don't know tell when the error happen. indeed I did not investigate it.
I will take a time for this..... and if you want,I can provide one of my log files to you reproduce the problem.

#35
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 17, 2018, 07:57:20 PM
Yes, I deleted the error log and re-created it with  (currently has 10 lines) and I can see by GUI log viewer

#36
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 17, 2018, 07:43:39 PM
Patch applyed, but the browser still crash (tested in several browsers)  :(

# opnsense-patch -c plugins 537da9cbe58d5291c5963df8e72fda5e7f770eba
....
done
All patches have been applied successfully.  Have a nice day.


#37
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 17, 2018, 05:44:45 PM
Hi @fabian, you was rigth, the nginx rotate the logs.
But, even with log rotation, the interface crashes when try load the log file.

About the tail -f solution, I think that can be a good choice, even with a big file the browser/php does not crash.

Like this

https://github.com/pfsense/pfsense-packages/blob/903855b9b2d726f09594f6caccad8015b6063ca8/config/squid3/34/squid_monitor.php#L48-L66
https://github.com/pfsense/pfsense-packages/blob/903855b9b2d726f09594f6caccad8015b6063ca8/config/squid3/34/squid_monitor_data.php
#38
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 14, 2018, 08:29:02 PM
Hi @fabian, yes, the log file is big, but Im running default nginx config, I did not touch in config.
#39
18.7 Legacy Series / Re: Nginx Plugin :: Log Viewer
December 14, 2018, 01:28:55 PM
Yes Franco, it seems.
Maybe a limiter with auto-refresh can solve it (like a tail -20 logfile )

Regaards
#40
18.7 Legacy Series / Nginx Plugin :: Log Viewer
December 14, 2018, 11:34:46 AM
Hello @fabian,
I upgrade two appliances to 18.7.9 and I could see that nginx has log viewr (Nice, thanks for it!)

But when I try access any logs, my Browser crash (in both appliances). I supose that is bacuse the size log file.
looking the logs I could see the following.

[14-Dec-2018 00:01:31 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522266880 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 00:02:20 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522290512 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 00:02:24 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522308872 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 00:02:42 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522314600 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 00:02:43 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522314800 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 00:05:48 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522354280 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 00:15:23 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1522830464 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42
[14-Dec-2018 08:19:09 America/Sao_Paulo] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 1536664032 bytes) in /usr/local/opnsense/mvc/app/library/OPNsense/Nginx/AccessLogParser.php on line 42


DO you got similar problem ?

Regards

Carlos
#41
18.7 Legacy Series / Re: Nginx Plugin :: WAF Whitelist
December 12, 2018, 12:16:23 AM
Nice @fabian!!!
#42
18.7 Legacy Series / Re: Nginx Plugin :: WAF Whitelist
December 06, 2018, 11:19:58 AM
Hi @Fabian,

I understood, lets wait the next release :)
Thanks by clarify me.

Best regards
Carlos
#43
18.7 Legacy Series / Re: Nginx Plugin :: WAF Whitelist
December 05, 2018, 08:17:19 PM
@Fabian,

How can I whitelist of an internal rule ? Like this.

BasicRule wl:10;


I only got success put this code directly into nginx.conf file :)

Best regards
Carlos
#44
Hi @fabian, locations in http server setting is OK.

Well, after reboot appliance the config it was generated as expected.
I will investigate and try reproduce again the problem.

Thank you by great help.

Carlos
#45
Well,
It is attached my env details.