-
-
Save viglesiasce/33d482ebd119b8c2dd19 to your computer and use it in GitHub Desktop.
Eucalyptus Logstash Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
tcp { port => 3333 } | |
} | |
filter { | |
grok { | |
match => { "message" => ["%{TIMESTAMP_ISO8601:euca_timestamp}%{SPACE}%{LOGLEVEL:euca_log_level}%{SPACE}\|%{GREEDYDATA:euca_message}", | |
"%{TIMESTAMP_ISO8601:euca_timestamp}%{SPACE}%{LOGLEVEL:euca_log_level}%{SPACE}%{BASE10NUM:euca_pid}%{SPACE}%{WORD:euca_function}%{SPACE}\|%{GREEDYDATA:euca_message}", | |
"%{TIMESTAMP_ISO8601:euca_timestamp}%{SPACE}%{LOGLEVEL:euca_log_level}%{SPACE}%{GREEDYDATA:euca_message}"] } | |
} | |
date { | |
match => ['euca_timestamp', "YYYY-MM-dd HH:mm:ss", "EEE MMM dd HH:mm:ss YYYY"] | |
} | |
} | |
output { elasticsearch_http { host => "localhost" port => "9200" } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to use this, first ensure you have Java 1.7 installed and download ELK:
Start the ELK stack:
Load up your eucalyptus log files into Logstash. In this case I'm pulling them from my unzipped sosreport archives:
Visit http://localhost:5601 to browse/search/splice your logs via Kibana.