Skip to main content

Simple date-based search engine for text- and gzip-logs

Project description

Tough Search


$ git clone
$ cd tough
$ pip3 install -r requirements.txt


$ cp conf-example.yaml conf.yaml

And then adjust conf.yaml according to your file structure and date format.

Create index

$ python3 -m tough reindex <index_name>


Let's say you want to find all requests to URL /foobar that came from March 5 to March 7, 2019 in your nginx logs:

$ python3 -m tough search -df 2019-03-05 -dt 2019-03-07 '/foobar' <index_name>

Or, maybe, find /foobar and /foobaz with regex /fooba[rz]:

$ python3 -m tough search -df 2019-03-05 -dt 2019-03-07 -e '/fooba[rz]' <index_name>

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toughsearch-0.1.0.tar.gz (5.6 kB view hashes)

Uploaded source

Built Distribution

toughsearch-0.1.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page