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

https://github.com/nabildridi/logtcpserverreceiverandviewer

A Tcp server that receive and display log messages (Structured log formats : Logstach, Elasticsearch and Graylog) from multiple remote applications
https://github.com/nabildridi/logtcpserverreceiverandviewer

elasticsearch graylog logback logger logging logstash netty spring-boot

Last synced: 2 months ago
JSON representation

A Tcp server that receive and display log messages (Structured log formats : Logstach, Elasticsearch and Graylog) from multiple remote applications

Awesome Lists containing this project

README

          

# LogTcpServerReceiverAndViewer
A Tcp server that receive and display log messages (Structured log formats : Logstach, Elasticsearh and Graylog) from multiple remote applications

# About the project :
The project is composed by two parts :
- A Tcp server that receives *structured log messages (Logstach, Elasticsearh and Graylog)* from remote applications
- A web application that displays the received messages

# Important note :
The project is very basic.
**It does not persist log messages or offer a search function**

# Configuration :
In application.properties we can configure :
- The Tcp server port with '**logging.server.port**'
- The web application port with '**server.port**'

# The web interface :
The web interface is accessible with the url : **http://localhost:{server.port}**

# How to send structured log messages from your applications:
In your pom.xml, import the socket appender :


me.moocar
socket-encoder-appender
0.1beta1

Then import one of those encoders :


co.elastic.logging
logback-ecs-encoder
1.6.0




net.logstash.logback
logstash-logback-encoder
8.0




de.siegmar
logback-gelf
6.1.0

In your logback-spring.xml, add the appender and the encoder :





127.0.0.1:{logging.server.port}

Note : uncomment and comment your preferred format.