Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file toughsearch-0.1.0.tar.gz.

File metadata

  • Download URL: toughsearch-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for toughsearch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d97bda9ec6ac7df0f6efaaf5767331ab36ce303f0ede047627e043c1d90b453
MD5 c3252fbb1bd3c9543bafcc827774a867
BLAKE2b-256 d51420b30ceb5cc6822d8780895fc072762ed0b1a5bd6db572ee3c350d86a00a

See more details on using hashes here.

File details

Details for the file toughsearch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: toughsearch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for toughsearch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 164b0b96da66851f0ddaa6741fd65820708de01b08b6950380d69971ed7ebebb
MD5 d25b2ecda23c5b6080a526df26f71c83
BLAKE2b-256 36ba40935fcd48a66b6da056d7617354abace158df22c2da18b80ade703b1ec0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page