Skip to content

robotics-in-concert/rocon_logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Build

# in this directory
docker build -tag [tag name what you want] .
# e.g. docker build -t myid/rocon_logstash:devel .
# don't forget . at last of command

Run

sudo docker run \
    -p 5044:5044 \
    -it --net=host \    # optional
    --name rocon_logstash_instance \    # optional
    -v $PWD/logstash.config:/config-dir/logstash.config \
    myid/rocon_logstash:devel

logstash.config

input {
    beats {
        port => 5044
        type => "logs"
   }
}

output {
    elasticsearch {
        # target elasticsearch server's hostname
        hosts => ["http://localhost:9200"]
        index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
        document_type => "%{[@metadata][type]}"
    }
}

About

plugin installed logstash for rocon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published