Skip to main content

A tiny lil' log searcher

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

filur

filur is a CLI application for searching log files.

Installation

Use the package manager pip to install filur.

Usage

filur works by processing a playbook defined by the user. Each playbook can be configured to parse multiple log files and each of them with custom patterns. An example playbook is shown below, with comments to describe additional properties as well as descriptions of each parameter.

files:
  - file: "/home/kverqus/syslog"
    order_by: "weight"                  # "weight" or "none" (default). Optional
    direction: "forward"                # "forward" (default) or "reverse". Optional
    rows: 400                           # number of rows to process. All rows are processed if not specified. Optional
    patterns:
      - pattern: "DHCPREQUEST"          # the pattern the row will be searched for
        type: "string"                  # "string" or "regex"
        weight: 20                      # all matched patterns will have their weight combined
      - pattern: "x-pid"
        type: "string"
        weight: 50
        operator: "KEYWORD"             # "OR" (default if not specified), "AND", "NOT" or "KEYWORD". The "KEYWORD"
                                        # operator will only be evaluated on already matched rows
      - pattern: '"\d+"'                # regex pattern
        type: "regex"
        weight: 20
    output:
      type: "html"                      # "html", "json" or "console". "html" and "json" expects path to be specified
      path: "/home/kverqus/output.html"
      overwrite: true                   # if already existing file should be overwritten. Optional
kverqus@serenity:~# filur --playbook syslog.yaml

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

filur-0.1.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

filur-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file filur-0.1.1.tar.gz.

File metadata

  • Download URL: filur-0.1.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.0

File hashes

Hashes for filur-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2f278eb10d141a87681facad98870c3ca2c19dd06edbc349aa755393bc58f11
MD5 124fc88282e3cff3530614426d645c0f
BLAKE2b-256 e781d2f038c29dc81ee9208dc8fe1383a00ac608d501483600f7a54d49cf5cc1

See more details on using hashes here.

File details

Details for the file filur-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: filur-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.0

File hashes

Hashes for filur-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca303bdcdbe174ef1deaed834ff62b86edaa6165782340c086860e9c57c11c61
MD5 0da3617f212e9b4ce98cbabe01dcac8a
BLAKE2b-256 c43414252bd50935adbec7581915fb611935169e886985ad158b684032ce1d29

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