Simple date-based search engine for text- and gzip-logs
Project description
Tough Search
Install
$ git clone https://github.com/toughsearch/tough.git
$ cd tough
$ pip3 install -r requirements.txt
Configure
$ 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>
Search
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for toughsearch-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 164b0b96da66851f0ddaa6741fd65820708de01b08b6950380d69971ed7ebebb |
|
MD5 | d25b2ecda23c5b6080a526df26f71c83 |
|
BLAKE2b-256 | 36ba40935fcd48a66b6da056d7617354abace158df22c2da18b80ade703b1ec0 |