Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- file {
- path => "/opt/mule-enterprise-standalone-3.8.4/logs/events.log"
- start_position => "beginning"
- type => "mule-event"
- }
- }
- filter {
- if [type] == "mule-event" {
- json{
- source => message
- }
- #2017-06-15T18:07:43465+0200
- date {
- match => ["timestamp", "yy-MM-dd'T'HH:mm:SSSSSZ"]
- target => "@timestamp"
- }
- }
- }
- output {
- elasticsearch {
- hosts => ["localhost:9200"]
- #user => "elastic"
- #password => "changeme"
- template_overwrite => true
- }
- stdout { codec => rubydebug }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement