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.0.tar.gz (8.9 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.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: filur-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.5

File hashes

Hashes for filur-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d7d8d334e9e5a7a5307c7195fc45c02861c7919b8370fc6c25b1b60aaea1f90
MD5 cb8f800c66a1d2452eb9a5bd4ba85d4a
BLAKE2b-256 da0983f8e094a2bc1dfb447cefffb2b3dda0df0a0363464820e4adfa1a874bcb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for filur-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a615ffa294803e2807ad60da34c0693ab8aab022f928bcfff9fbc60aa78eacc
MD5 623f5804947abb9fa15ec9841c222ff2
BLAKE2b-256 748491bcc8ae2f44b0e1f244a17a7b7305a1824a2e6bf21c780f9e41cf49f560

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