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.3.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pratix_nelog-0.2.3.tar.gz.
File metadata
- Download URL: pratix_nelog-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17d544a76383a316fbe68ba270dc1852426205713e858f95aae7da0de2a5a440
|
|
| MD5 |
a6a340a4ea66ec5b5b5c89e04bd9610a
|
|
| BLAKE2b-256 |
9793d30e1de9196d80468b9e69d0cd20ce996870d28e7541a7c7819d9fe738f2
|
File details
Details for the file pratix_nelog-0.2.3-py3-none-any.whl.
File metadata
- Download URL: pratix_nelog-0.2.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
801f3135fcea68db1e26b88360d0fe18801796542b4ed937aeb71421d6735554
|
|
| MD5 |
b6f7dec762539de3e6933163a704342b
|
|
| BLAKE2b-256 |
2a374d4009578ff30054fe997177b5ab4f52259faa924cb682968b6c6e762a02
|