core
core copied to clipboard
Kea log file search results are inconsistent and unpredictable when the search string contains punctuation
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug
The Kea log file page at .../ui/diagnostics/log/core/kea is somewhat broken. The Search box does not work as expected when the search string contains punctuation characters.
To Reproduce
Steps to reproduce the behavior:
- Configure the Kea DHCP server and let it run until is serves some leases.
- Go to '.../ui/diagnostics/log/core/kea'
- Note that the log file looks similar to the log file shown below.
- Click in the Search box and enter this string: ]]][[[[[[||^%$@[[[!~**
- Note that the page shows many results. Note that none of the results contain the search string.
- Slowly delete characters from the text in the Search box. Note that more line matches are displayed as the search string is shortened, although they don't match any better than the other lines did.
Expected behavior
Only lines containing the search string are displayed.
If there are rules regarding metacharacters or punctuation or regular expressions, I was expecting to find them on the .../ui/diagnostics/log/core/kea page.
Describe alternatives you considered
I searched for documentation about the Kea integration in OPNsense in hopes of learning the rules for search text. I couldn't find that documentation.
Screenshots
Screenshot 2024-02-07 at 11.14.27 AM.pdf
Relevant log files
| Date | Severity | Process | Line | . |
|---|---|---|---|---|
| 2024-02-07T11:13:22-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 44:61:32:d6:1d:5d], cid=[ff:32:d6:1d:5d:00:03:00:01:44:61:32:d6:1d:5d], tid=0x258769e8: lease 10.5.1.109 has been allocated for 600 seconds | |
| 2024-02-07T11:13:07-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 04:5d:4b:aa:87:b9], cid=[01:04:5d:4b:aa:87:b9], tid=0x159fe5f8: lease 10.5.1.178 has been allocated for 600 seconds | |
| 2024-02-07T11:12:53-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 a8:b5:7c:49:58:eb], cid=[no info], tid=0x21643b6f: lease 10.5.1.100 has been allocated for 600 seconds | |
| 2024-02-07T11:12:51-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 bc:24:11:a6:25:09], cid=[ff:11:a6:25:09:00:01:00:01:2d:30:5e:80:bc:24:11:ca:ca:2a], tid=0x86303a20: lease 10.5.1.230 has been allocated for 600 seconds | |
| 2024-02-07T11:12:49-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 44:61:32:2f:c1:e5], cid=[ff:32:2f:c1:e5:00:03:00:01:44:61:32:2f:c1:e5], tid=0x21322d81: lease 10.5.1.234 has been allocated for 600 seconds | |
| 2024-02-07T11:12:16-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 c8:e0:eb:3c:6e:43], cid=[01:c8:e0:eb:3c:6e:43], tid=0xb7c7b775: lease 10.5.1.110 has been allocated for 600 seconds | |
| 2024-02-07T11:12:16-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_INIT_REBOOT [hwtype=1 c8:e0:eb:3c:6e:43], cid=[01:c8:e0:eb:3c:6e:43], tid=0xb7c7b775: client is in INIT-REBOOT state and requests address 10.5.1.110 | |
| 2024-02-07T11:11:38-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d1fd00] DHCP4_LEASE_ALLOC [hwtype=1 c0:56:e3:6f:42:95], cid=[01:c0:56:e3:6f:42:95], tid=0xe30c7536: lease 10.5.8.70 has been allocated for 600 seconds | |
| 2024-02-07T11:10:57-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d20400] DHCP4_LEASE_ALLOC [hwtype=1 94:05:bb:10:16:58], cid=[01:94:05:bb:10:16:58], tid=0xb8b7280a: lease 10.5.1.113 has been allocated for 600 seconds | |
| 2024-02-07T11:10:40-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d20400] DHCP4_LEASE_ALLOC [hwtype=1 90:03:b7:fa:2b:a5], cid=[01:90:03:b7:fa:2b:a5], tid=0x111fd258: lease 10.5.1.121 has been allocated for 600 seconds | |
| 2024-02-07T11:10:36-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d20400] DHCP4_LEASE_ALLOC [hwtype=1 94:bf:2d:76:82:cd], cid=[01:94:bf:2d:76:82:cd], tid=0xe4ea1ee0: lease 10.5.1.105 has been allocated for 600 seconds | |
| 2024-02-07T11:10:36-08:00 | Informational | kea-dhcp4 | INFO [kea-dhcp4.leases.0x833d20400] DHCP4_INIT_REBOOT [hwtype=1 94:bf:2d:76:82:cd], cid=[01:94:bf:2d:76:82:cd], tid=0xe4ea1ee0: client is in INIT-REBOOT state and requests address 10.5.1.105 |
Additional context
None.
Environment
OPNsense 24.1.1-amd64 FreeBSD 13.2-RELEASE-p9 OpenSSL 3.0.13
this is more a generic log search thing, input is cleansed quite aggressively, given the low number of reports in the past, I don't think we should aim for accepting almost anything here as the number of relevant cases is rather low.
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.