Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input{
- file{
- type => "power"
- path=> "/tmp/power.log"
- }
- file{
- type => "temp"
- path=> "/tmp/temp.log"
- }
- }
- filter{
- if [type] == "power" {
- grok{
- match => ["message", "%{TIMESTAMP_ISO8601:timestamp} %{NUMBER:power}"]
- }
- }
- if [type] == "temp" {
- grok{
- match => ["message", "%{TIMESTAMP_ISO8601:timestamp} %{NUMBER:temp}"]
- }
- }
- }
- output {
- elasticsearch { host => localhost }
- stdout { codec => rubydebug }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement