OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Firewall Live View
« previous next »
  • Print
Pages: [1] 2

Author Topic: Firewall Live View  (Read 4130 times)

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Firewall Live View
« on: December 06, 2022, 09:10:47 am »
Hello,

I'm on version 22.7.9 and just noticed a change in Live View. The filtered data is only displayed for about 2 minutes. After that they disappear again. This makes it very difficult to search for data because the display period is very short. Is it possible to set it back to the way it was before ?

Regards,
atom
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Firewall Live View
« Reply #1 on: December 06, 2022, 09:29:51 am »
Did you disable auto-refresh?


Cheers,
Franco
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: Firewall Live View
« Reply #2 on: December 06, 2022, 09:36:01 am »
No, Auto refresh is enabled.

Regards,
atom
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Firewall Live View
« Reply #3 on: December 06, 2022, 09:54:14 am »
I suppose auto-refresh will eventually show you new matching entries, because that is what it does.

If there are no matches in the set of changes fetched from the log it'll stop displaying anything naturally.


Cheers,
Franco
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: Firewall Live View
« Reply #4 on: December 06, 2022, 10:04:25 am »
I only get to see data that is no older than about 2 minutes. Then they disappear automatically, although the number of 25 entries has not yet been reached.
I mean that before it was so that the entries were visible until the maximum number of 25 has been exceeded ( or 50, 100 depending on what has been set ).

Regards,
Thomas
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: Firewall Live View
« Reply #5 on: December 06, 2022, 10:15:09 am »
I took two screenshots about 2 minutes apart.

Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Firewall Live View
« Reply #6 on: December 06, 2022, 10:18:12 am »
Hi Thomas,

I think you don't consider the fact that the log might add a lot of non-filtered entries and then naturally the results disappear in the bulk fetched by the GUI. You can make the fetched data bigger with the size drop down, but any limit will have a boundary where entries disappear.


Cheers,
Franco
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: Firewall Live View
« Reply #7 on: December 06, 2022, 10:46:56 am »
Hi Franco,

Has the behavior changed ?
I could previously filter the log for hours ( and see all entries ).

Regards,
atom
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Firewall Live View
« Reply #8 on: December 06, 2022, 10:54:15 am »
There were a number of fixes when the system failed to filter correctly, around 22.7.6/7.

Perhaps the previous behaviour was more desirable but still a bit buggy in that regard. Turning off the auto-refresh should really help emulate the previous experience. I don't see much leeway in the middle.


Cheers,
Franco
Logged

Do0m_X

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Firewall Live View
« Reply #9 on: December 06, 2022, 11:26:49 am »
Hello,

I have the same problem. But for me, it does not remain 2 minutes but only a few seconds. As soon as I update manually (or automatically) the previous entries disappear. This makes log analysis impossible.

Regards,
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1777
  • Karma: 164
    • View Profile
Re: Firewall Live View
« Reply #10 on: December 06, 2022, 11:31:33 am »
@franco
Hi!
i think it may be at
https://github.com/opnsense/core/commit/67d22336fa7f4fef901473f580ce911864829e12
looks like table cleanup a bit oversimplified

what if we replace
Code: [Select]
                    // limit output, try to keep max X records on screen.
                    $("#grid-log > tbody > tr:gt("+max_rows+")").remove();
with
Code: [Select]
                    // limit output, try to keep max X records on screen.
                    $('#grid-log > tbody > tr:hidden').remove();
                    $("#grid-log > tbody > tr:gt("+max_rows+")").remove();
?
(first remove filtered-out rows and only then slice the table to the max_rows level)
« Last Edit: December 06, 2022, 11:44:58 am by Fright »
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1777
  • Karma: 164
    • View Profile
Re: Firewall Live View
« Reply #11 on: December 06, 2022, 11:41:03 am »
@atom
can you test
Code: [Select]
opnsense-patch -a kulikov-a dd37ff3
please?
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: Firewall Live View
« Reply #12 on: December 06, 2022, 11:53:17 am »
Hi Fright,

great.
The filtering now works again over a longer period of time (as far as I can tell after a few minutes of testing).

Regards,
atom
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Firewall Live View
« Reply #13 on: December 06, 2022, 12:57:27 pm »
I'm entirely unsure if keeping stale results in the client side is the best course of action here. I can see the utility but it requires very infrequent occurrence of the issue to even observe it and new results will always flush the old ones correctly anyway.


Cheers,
Franco
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: Firewall Live View
« Reply #14 on: December 06, 2022, 01:14:44 pm »
Hi Franco,

How it works now with the patch again helps me to find events that occur only rarely.
So I can filter it over hours without anything slipping through.

Regards,
atom
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Firewall Live View
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2