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
- Host: GitHub
- URL: https://github.com/nabildridi/logtcpserverreceiverandviewer
- Owner: nabildridi
- Created: 2024-12-25T09:04:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-26T08:56:41.000Z (over 1 year ago)
- Last Synced: 2025-08-30T09:02:22.815Z (10 months ago)
- Topics: elasticsearch, graylog, logback, logger, logging, logstash, netty, spring-boot
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.