Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
Nginx Plugin :: Log Viewer
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Nginx Plugin :: Log Viewer (Read 10489 times)
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx Plugin :: Log Viewer
«
Reply #15 on:
December 18, 2018, 05:41:13 pm »
sent a pm with a nextcloud link
Logged
ccesario
Jr. Member
Posts: 83
Karma: 1
Re: Nginx Plugin :: Log Viewer
«
Reply #16 on:
December 18, 2018, 06:01:50 pm »
File uploaded.
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx Plugin :: Log Viewer
«
Reply #17 on:
December 18, 2018, 07:06:17 pm »
I looked into it - the API provides the data just fine, backbone + browser native functions take over the big JSON file without issues (only takes long - 3 seconds on my machine). So what is needed is a paging for not rendering 200k log lines at once into the browser window. What do you think is a reasonable default? 200 Lines?
Logged
ccesario
Jr. Member
Posts: 83
Karma: 1
Re: Nginx Plugin :: Log Viewer
«
Reply #18 on:
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
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx Plugin :: Log Viewer
«
Reply #19 on:
December 19, 2018, 07:25:03 pm »
This commit will give you a new frontend (
https://github.com/opnsense/plugins/pull/1080/commits
):
opnsense-patch -c plugins b8d15a8b50b2b723830eb2d2c0117668f67f3420
tested it with your file and it works on my machine.
Logged
ccesario
Jr. Member
Posts: 83
Karma: 1
Re: Nginx Plugin :: Log Viewer
«
Reply #20 on:
December 20, 2018, 12:49:52 pm »
Hi @Fabian,
Patch applyed, but the browser still crashed, but after some tries, the file is loaded, but no refresh/update data and when I try navigate using pagination the browser crashe.
Regards
Carlos
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx Plugin :: Log Viewer
«
Reply #21 on:
December 20, 2018, 06:28:37 pm »
then you probably do not have enough memory. I have tested it on a Linux machine with 8GB RAM on Firefox.
Logged
ccesario
Jr. Member
Posts: 83
Karma: 1
Re: Nginx Plugin :: Log Viewer
«
Reply #22 on:
December 21, 2018, 12:55:30 am »
No Fabian, I have tested with several machines.... And one of then hás 32gb mem.
Regards
Carlos
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx Plugin :: Log Viewer
«
Reply #23 on:
December 21, 2018, 10:08:27 pm »
This one is your file on my machine (2nd page if I counted it correctly)
Browser: Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0
Logged
ccesario
Jr. Member
Posts: 83
Karma: 1
Re: Nginx Plugin :: Log Viewer
«
Reply #24 on:
December 22, 2018, 08:49:34 pm »
Hi Fabian, I understand you.
I have tested it with "static" log file (the same that I sent you) . And its ok.
But the problem is when using the current file (in production) with many updates in the current log.
There are something that is broken it.
I do not know how is the implementation, but why not usage the same method that firewall/rules log viewer?
Regards
Carlos
Logged
Print
Pages:
1
[
2
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
Nginx Plugin :: Log Viewer