Version1.0
Revision6
Size2.9 MB
LicenseApache-2.0
Confinementstrict
Basecore18

Tool to simplify searching logfiles


This tool helps searching large numbers of files across multiple locations. It is particularly useful when looking for information in sosreports and can be run against multiple sosreports to get data across hosts.

Note that since this is a strictly confined snap the log files must be under $HOME

Install

sudo snap install logsearch

If you need to search a path on a remote file-system you will need:

sudo snap connect logsearch:removable-media

Examples

Basic search - all messages containing ERROR in /var/log/apache:

logsearch -d apache -k error mysosreports/

Or to look for errors in /var/log/syslog* (i.e. files not dir)

logsearch -f syslog -k error mysosreports/

Advanced search - all messages containing "2ae8d37" in /var/log/neutron and filtering out any debug or info level messages:

logsearch -d neutron -k 2ae8d37 -e 'DEBUG|INFO' mysosreports/

Update History

1.0 (6)
13 Dec 2025, 09:47 UTC

Published29 Jan 2020, 20:13 UTC

Last updated15 Jan 2022, 16:17 UTC

First seen13 Dec 2025, 09:47 UTC