Advertisement
Guest User

Untitled

a guest
May 28th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. input {
  2. stdin {type => "manual" }
  3.  
  4. file {
  5. path => "G:\ElasticSearch\wherelogare\test.log"
  6. start_position => "beginning"
  7. type => "logs"
  8. }
  9.  
  10. file {
  11. path => "G:\ElasticSearch\wherelogare\test1.log"
  12. start_position => "beginning"
  13. type => "logs1"
  14. }
  15. }
  16. ########################################################
  17. filter {
  18. json {
  19. source => "message"
  20. target => "jdata"
  21. }
  22. }
  23. ########################################################
  24. output {
  25. elasticsearch {
  26. hosts => "localhost"
  27. user => "logstash_internal"
  28. password => "changeme"
  29. index => "logstash-dm88logs"
  30. }
  31. stdout { codec => rubydebug }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement