An open API service indexing awesome lists of open source software.

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

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

![demo](demo.gif)