Advertisement
Guest User

Untitled

a guest
Apr 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. input {
  2. tcp {
  3. port => 2856
  4. codec => json_lines
  5. }
  6. }
  7.  
  8. filter {
  9. mutate {
  10. convert => {
  11. "tenantId" => "integer"
  12. "userId" => "integer"
  13. }
  14. }
  15. }
  16.  
  17. output {
  18. elasticsearch {
  19. hosts => ["127.0.0.1:9200"]
  20. user => "user"
  21. password => "secure"
  22. }
  23. }
  24.  
  25. "logstash-2016.04.25" : {
  26. "mappings" : {
  27. "logs" : {
  28. "_all" : {
  29. "omit_norms" : true,
  30. "enabled" : true
  31. },
  32. "properties" : {
  33. ...
  34. "userId" : {
  35. "type" : "long"
  36. },
  37. "tenantId" : {
  38. "type" : "long"
  39. },
  40. ...
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement