Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- file {
- id => "production-json"
- type => "production-json"
- tags => ["production-json"]
- start_position => beginning
- path => "/home/dettogni/pipe_logstash_git/production_json.log"
- }
- }
- filter {
- mutate { add_field => {"log_name" => "gitlab-log"}}
- json{
- source => "message"
- }
- date {
- match => [ "time", "yyyy-MM-dd HH:mm:ss.sssZ", "ISO8601" ]
- target => "@timestamp"
- }
- }
- output {
- stdout {codec => rubydebug}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement