https://github.com/gmega/logtools
https://github.com/gmega/logtools
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gmega/logtools
- Owner: gmega
- Created: 2023-10-19T21:06:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T21:19:37.000Z (over 2 years ago)
- Last Synced: 2023-10-24T22:25:35.145Z (over 2 years ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Log Visualization Tools
## Installation
```sh
pip install git+https://github.com/gmega/logtools.git
```
## Usage
### Merge by Timestamp
```sh
log-merge log1.log log2.log
```
### Merge by Timestamp Showing Aliases Instead of File Name
```sh
log-merge log1.log log2.log --aliases bootstrap codex21
```
### Merge and Filter by Timestamp
```sh
# If no timezone is provided, assumes UTC
log-merge log1.log log2.log --from 2021-01-01T00:00:00 --to 2021-01-02T00:00:00
```
### Transform Raw Logs into CSV
```sh
cat ./log1.log | log-to-csv
```
### Transform Raw Logs into CSV, Extracting Topics Into Column
```sh
cat ./log1.log | log-to-csv --extract-fields topics
```