Skip to main content

No project description provided

Project description

pat-cli

Table of Contents

Overview

pat-cli is a tool for clustering logs based on the textual content of the log. The tool uses a two-step process to achieve this:

Vectorization: In this step, the log statement is converted into a vector in an n-dimensional space. This way, we can treat logs just like we treat points on a 2D graph and try to cluster them. The only difference is that the dimension of this space.

To achieve this vectorization, few algorithms can be employed. The available algorithms can be found using the help page of the tool, but one example is the TF-IDF.

Usually, vectorization involves a sub-step called tokenization. In this step, the logs are broken down into a set of tokens. For example, a log like "Writing output to file" can be broken down into the following tokens: "writing", "output", "to", "file". This allows the tool to understand the textual content of the logs. For example, in the TF-IDF algorithm, the frequencies of the words (tokens) making up each log statement are used to determine how important each word in the log is.

Clustering: In this step, a clustering algorithm like K-Means or Birch is used to cluster the logs into multiple groups that are likely to be similar to each other.

Usage

pat-cli is available on PyPI, so you can install it with pip:

pip install pat-cli

The pat command will then be available in your environment. You can get help on how to use it using:

pat --help

Issue

If you face any issue, feel free to create a GitHub Issue in this repository and I will try to address it or respond to it as soon as possible.

Contribution

Contribution is welcome. If you have an interesting addition to the tool, be it another vectorization or clustering algorithm, feel free to publish a PR.

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

pat_cli-0.1.1.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

pat_cli-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pat_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pat_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7d79f182a87d47712966f4416bfd078a74621f697f9b8c38a97575dc9887b99b
MD5 8a2a1a207e6ee0daad45496897b588da
BLAKE2b-256 f6ffe6592089b6b0355859000a59e6f218507c4a066ad6ff4e0c33e3284260b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pat_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pat_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fce401cb6e117b2a5a6fa59f3915d9d7afe332f0d04b9a1f56088d5d1622075
MD5 14da15a9a1639eb9bb7310ad199ffc29
BLAKE2b-256 845187dd56b70b1cc8110a1e97b13ff34a3bc6839566a3309af3ba85fc7168c7

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