Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. input {
  2. file {
  3. id => "production-json"
  4. type => "production-json"
  5. tags => ["production-json"]
  6. start_position => beginning
  7. path => "/home/dettogni/pipe_logstash_git/production_json.log"
  8.  
  9. }
  10. }
  11. filter {
  12.  
  13. mutate { add_field => {"log_name" => "gitlab-log"}}
  14.  
  15. json{
  16. source => "message"
  17. }
  18. date {
  19. match => [ "time", "yyyy-MM-dd HH:mm:ss.sssZ", "ISO8601" ]
  20. target => "@timestamp"
  21. }
  22. }
  23. output {
  24. stdout {codec => rubydebug}
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement