glogg
glogg copied to clipboard
Filtering log results
Hello everyone,
I would like to filter the logs. I wonder how can I search for a specific date (YYYY-MM-DD) and IP address. I have tried using the && expressions as well as | but it did not provide the expected results. I have read articles and tried many combinations (brackets, &&, |, *) but still I cannot filter the logs by date and the IP address. I can only search for one attribute at the time. If you have any tip or advice how to define expression in glogg to search for those two values together I would highly appreciate it. Thank you.
it works for me
as OR. it finds lines with te given date or given ip
2018-10-25-09:03:08.989\+0300|127.0.0.1
as AND. it finds lines with te given date AND given ip in the same line (where date is before ip in line)
2018-10-25-09:06:10.900\+0300.*127.0.0.1
Another example:
2018-10-25-09:06:10.900\+0300.*127.0.0.1|2018-10-25-09:06:10.913\+0300.*127.0.0.1
Same as prev
(2018-10-25-09:06:10.900\+0300|2018-10-25-09:06:10.913\+0300).*127.0.0.1
Same
2018-10-25-09:06:10.(900|913)\+0300.*127.0.0.1
Built 2018-09-22 from e191a63
read about regexp