mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Create logstash.conf
Added a default "Logstash.conf" as example and so logstash can actually run once you compile the rpm.
This commit is contained in:
parent
9f6257ed53
commit
130bd6f79f
1 changed files with 26 additions and 0 deletions
26
pkg/rpm/SOURCES/logstash.conf
Normal file
26
pkg/rpm/SOURCES/logstash.conf
Normal file
|
@ -0,0 +1,26 @@
|
|||
### THIS IS A EXAMPLE CONFIG SO LOGSTASH WILL RUN ###
|
||||
### PLEASE UPDATE THIS TO WHATEVER YOU WANT TO USE ###
|
||||
|
||||
input {
|
||||
syslog {
|
||||
type => syslog
|
||||
port => 5544
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
filter {
|
||||
mutate {
|
||||
add_field => [ "hostip", "%{host}" ]
|
||||
}
|
||||
dns {
|
||||
reverse => [ "host" ]
|
||||
action => "replace"
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
elasticsearch {
|
||||
host => "localhost"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue