Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- # file {
- # path => "/tmp/in.log"
- # type => "logfile" # a type to identify those logs (will need this later)
- # start_position => "beginning"
- # }
- file {
- path => "/var/log/apache2/access.log"
- type => "a2access" # a type to identify those logs (will need this later)
- start_position => "end"
- }
- file {
- path => "/var/log/apache2/error.log"
- type => "a2error" # a type to identify those logs (will need this later)
- start_position => "end"
- }
- udp {
- port => 5555
- type => "udp"
- }
- tcp {
- port => 5555
- type => "tcp"
- }
- syslog {
- port => 5514
- type => "syslog"
- }
- }
- output {
- # file {
- # path => "/tmp/out.log"
- # }
- elasticsearch {
- hosts => ["127.0.0.1"]
- }
- if [@metadata][cthostmeta] == "demosystem" {
- file {
- codec => rubydebug { metadata => true}
- path => "/tmp/cthost_out.log"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement