https://github.com/yankeguo-deprecated/xlogd
https://github.com/yankeguo-deprecated/xlogd
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yankeguo-deprecated/xlogd
- Owner: yankeguo-deprecated
- License: mit
- Created: 2018-07-27T07:13:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T08:16:38.000Z (about 6 years ago)
- Last Synced: 2025-02-14T16:58:28.813Z (3 months ago)
- Language: Go
- Size: 1.13 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xlogd
`xlogd` is designed for specified purposes, it replaces `logstash`
send a JSON string into redis with `RPUSH`
```json
{
"message": "[2018/09/10 17:24:22.120] CRID[945bea8e42de2796] this is a message",
"source": "/var/log/prod/err/api-customer.log",
"beat": {
"hostname": "example.web.01"
}
}
````xlogd` will fetch and convert it into a elasticsearch document
```json
{
"timestamp": "2018-09-10T17:24:22.120Z",
"env": "prod",
"topic": "err",
"project": "api-customer",
"hostname": "example.web.01",
"crid": "945bea8e42de2796",
"message": "CRID[945bea8e42de2796] this is a message"
}
```