Skip to content

tony-riot/logreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logreader

It is logfile reader in "tail -f" manner to incorporate with logstash. To make use, setup logstash to receive plain log with TCP input plugin. You can see the configuration at https://www.elastic.co/guide/en/logstash/current/plugins-inputs-tcp.html

How to build

$ mvn package

How to run

Download the pre-build logreader.jar file from the git repo or build it after cloning.

$ java -jar logreader.jar file.log <logstash.ip> <logstash.tcp.port>

  • file.log - log file path
  • logstash.ip - logstash server's IP or domain name
  • logstash.tcp.port - logstash server's listening port for TCP input plugin

Happy try!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages