Skip to main content

A library to analyze network logs in multiple formats and consolidate them into JSON.

Project description

pratix-nelog

pratix-nelog is a Python library to analyze network logs in multiple formats (CSV, JSON, TXT) and consolidate them into a standardized JSON format.

Features

  • Parse logs in various formats.
  • Extract key information like timestamps, IP addresses, and actions.
  • Consolidate logs into JSON.

Installation

pip install pratix-nelog


from pratix_nelog.parser import LogParser
from pratix_nelog.consolidator import LogConsolidator

# Example usage
logs = LogParser.parse_csv("sample_logs.csv")
consolidated_logs = LogConsolidator.consolidate(logs, "csv")
LogConsolidator.save_to_json(consolidated_logs, "output.json")

print("Logs processed and saved to output.json")

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

pratix_nelog-0.2.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

pratix_nelog-0.2.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pratix_nelog-0.2.4.tar.gz.

File metadata

  • Download URL: pratix_nelog-0.2.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for pratix_nelog-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ab8c0fe28975f5c5580febc97222111a8322b2f8e3bca48047efa43f52246ece
MD5 6188c6e51cfeb44b24971e2dd93f5c49
BLAKE2b-256 22e7a9f04976e5b491b64f6a4777cd1eb939d496801329a62cc227d63de8586d

See more details on using hashes here.

File details

Details for the file pratix_nelog-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pratix_nelog-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for pratix_nelog-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f641e9aa77384c9732b467ee18159931b4529faa481181014d39ef868a369aba
MD5 4a60eaecaa8bed782621ee8db75c8bfc
BLAKE2b-256 94b0ee88ab0781b759967e0af6c05dd8ee7658dcfdfc1a3461129ecb10425918

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