Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- file {
- path => "C:/Elk/logstash/bin/us_a_symfony.access.log-2017-02-24"
- type => "apache-access" # a type to identify those logs (will need this later)
- start_position => "beginning"
- }
- }
- filter {
- grok {
- match => { "message" => "%{COMBINEDAPACHELOG}" }
- }
- date {
- match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
- }
- }
- output {
- elasticsearch { hosts => ["localhost:9200"]
- index => "logi"
- }
- stdout { codec => rubydebug }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement