Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vicradon/telex_aggregator
Telex aggregator
https://github.com/vicradon/telex_aggregator
Last synced: 25 days ago
JSON representation
Telex aggregator
- Host: GitHub
- URL: https://github.com/vicradon/telex_aggregator
- Owner: vicradon
- Created: 2024-08-22T09:08:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T17:16:03.000Z (4 months ago)
- Last Synced: 2024-08-25T10:44:38.438Z (4 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telex Aggregator
An app that monitors logs in files and directories and sends them to a Telex Webhook.
## Installing
You can install the app with the following command:
```sh
wget https://raw.githubusercontent.com/vicradon/telex_aggregator/main/install.sh
bash install.sh
```Or
```sh
bash <(curl -s https://raw.githubusercontent.com/vicradon/telex_aggregator/main/install.sh)
```Then you'll add your Webhook URL as per the prompt, the application name, and the directory you will like to watch.
```
Enter Webhook URLs (separate multiple URLs with space): https://ping.staging.telex.im/api/v1/webhooks/feed/e80dklioc
Enter Application name: Kimiko Backend Logs
Enter Log Directory Paths (separate multiple paths with space): /home/$USER/telex_be/logs/app.log
```## Running
The application runs as a systemd service in the background and sends logs when new logs come. You can configure the interval by modifying the `interval` field on the config file. The default is 30 seconds. You can also set a filter for each target so that This is the default config file content:
```
clients:
- webhook_urls:
- https://ping.staging.telex.im/api/v1/webhooks/feed/389iodjdu9targets:
- application: Telex Backend Logs
filter: \b(400|401|403|404|405|422|429|500|501|502|503|504)\b # filter http error codes
paths:
- /home/someguy/telex_be/logs/app.loginterval: 30s
```## Uninstalling
The script `./uninstall_telex.sh` will run the opposite of the install script and remove the application binary, the sqlite database, and the config file.
## Contributing
Errm...
## LICENSE
MIT