https://github.com/ccin2p3/docker-distributed-tail--f-messages
Distributed tail -f /var/log/messages docker container. This is companion material to the Linux Journal article
https://github.com/ccin2p3/docker-distributed-tail--f-messages
Last synced: 2 months ago
JSON representation
Distributed tail -f /var/log/messages docker container. This is companion material to the Linux Journal article
- Host: GitHub
- URL: https://github.com/ccin2p3/docker-distributed-tail--f-messages
- Owner: ccin2p3
- Created: 2018-04-10T11:45:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T14:29:13.000Z (about 7 years ago)
- Last Synced: 2025-01-23T14:41:28.278Z (4 months ago)
- Language: Clojure
- Size: 4 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Distributed tail -F /var/log/messages docker container
## What's that?
This is companion material to the Linux Journal article.
This container will run all the necessary steps to build the hub.## Build
docker build .
## Run
docker run -p 55556:5556 -p 55559:5559 -p 5514:514/udp -it
## Usage
### Subscribe to websocket
#### wscat
```
npm install wscat
wscat --connect 'ws://127.0.0.1:55556/index?subscribe=true&query=true'
```#### wsdump.py
```
pip install websocket-client
wsdump -r 'ws://127.0.0.1:55556/index?subscribe=true&query=true'
```### Send syslog message to container
```
logger -d -n 127.0.0.1 -P 5514 -t test test
```## Demo
