mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Services: Intrusion Detection: Administration - our fix in the reverse log reader (7446f8cbbf) caused a regression in the alert view. closes https://github.com/opnsense/core/issues/8550
It looks like this worked by accident, since we started with the wrong offset, we accidentally hit the right record.
This commit is contained in:
parent
d0f745a70e
commit
6a89c8968b
@ -79,7 +79,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
# filter one specific log line
|
# filter one specific log line
|
||||||
if 'filepos' in data_filters and data_filters['filepos'].isdigit():
|
if 'filepos' in data_filters and data_filters['filepos'].isdigit():
|
||||||
log_start_pos = int(data_filters['filepos'])
|
log_start_pos = int(data_filters['filepos']) + 5000
|
||||||
else:
|
else:
|
||||||
log_start_pos = None
|
log_start_pos = None
|
||||||
|
|
||||||
@ -122,9 +122,9 @@ if __name__ == '__main__':
|
|||||||
# do not fetch data until end of file...
|
# do not fetch data until end of file...
|
||||||
break
|
break
|
||||||
|
|
||||||
# only try to fetch one line when filepos is given
|
# only try to fetch one line when filepos is given
|
||||||
if log_start_pos is not None:
|
if log_start_pos is not None:
|
||||||
break
|
break
|
||||||
|
|
||||||
# output results
|
# output results
|
||||||
print(ujson.dumps(result))
|
print(ujson.dumps(result))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user