Advertisement
Guest User

Sample Elasticsearch Log Entries

a guest
May 21st, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Sample ISO8601 time format entry:
  2. --------------------------------
  3. {
  4. "_index": "site-data-2015.05.20",
  5. "_type": "test-timestamps",
  6. "_id": "AQiX9eNjRvCPyku7mq-6wA",
  7. "_score": null,
  8. "_source": {
  9. "@version": "1",
  10. "@timestamp": "2015-05-20T18:39:09.004Z",
  11. "environment": "development",
  12. "file": "/var/log/test-timestamps.log",
  13. "host": "web01",
  14. "offset": "6881",
  15. "type": "test-timestamps",
  16. "log_format": "json",
  17. "logstash_indexer": "ls01",
  18. "timestamp_iso8601": "2015-05-20T14:30:20-05:00",
  19. "category": "testing",
  20. "country": "US",
  21. "tags": [
  22. "json_parsed"
  23. ]
  24. },
  25. "sort": [
  26. 1432147149004,
  27. 1432147149004
  28. ]
  29. }
  30.  
  31.  
  32. Sample Epoch time format entry:
  33. --------------------------------
  34.  
  35. {
  36. "_index": "site-data-2015.05.20",
  37. "_type": "test-timestamps",
  38. "_id": "qEPgyhJ0RAuQ_K6Vc7kbXw",
  39. "_score": null,
  40. "_source": {
  41. "@version": "1",
  42. "@timestamp": "2015-05-20T18:39:09.004Z",
  43. "environment": "development",
  44. "file": "/var/log/test-timestamps.log",
  45. "host": "web01",
  46. "offset": "6578",
  47. "type": "test-timestamps",
  48. "log_format": "json",
  49. "logstash_indexer": "ls01",
  50. "timestamp_epoch": "1432146610",
  51. "category": "testing",
  52. "country": "EU",
  53. "tags": [
  54. "json_parsed"
  55. ]
  56. },
  57. "sort": [
  58. 1432147149004,
  59. 1432147149004
  60. ]
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement