config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. The settings before the break are the only ones that are currently implemented
  3. The remaining settings do nothing
  4. timespan: Default timespan (eg 1d, 30d, 6h, 20m)
  5. refresh: Milliseconds between auto refresh.
  6. timeformat: Format for time in histograms (might go away)
  7. timefield: Field to use for ISO8601 timestamps (might go away)
  8. indexpattern: Timestamping pattern for time based indices,
  9. modules: Panel modules to load. In the future these will be inferred
  10. from your initial dashboard, though if you share dashboards you
  11. will probably need to list them all here
  12. NOTE: No timezone support yet, everything is in UTC at the moment.
  13. If you need to configure the default dashboard, please see dashboard.js
  14. shared.json contains an example sharable dashboard. Note the subtle differences
  15. between dashboard.js and shared.json. Once is a javascript object, the other is
  16. json.
  17. */
  18. var config = new Settings(
  19. {
  20. timespan: '15m',
  21. refresh: 10000,
  22. elasticsearch: 'http://localhost:9200',
  23. timeformat: 'mm/dd HH:MM:ss',
  24. timefield: '@timestamp',
  25. //indexpattern: '"logstash-"yyyy.mm.dd',
  26. indexpattern: '"shakespeare"',
  27. modules: ['histogram','pieterms','piequery','stackedquery','map'],
  28. defaultfields: ['line_text'],
  29. perpage: 50,
  30. timezone: 'user',
  31. operator: 'OR',
  32. exportdelim: ',',
  33. smartindex: true,
  34. indexlimit: 150,
  35. indexdefault: 'logstash-*',
  36. primaryfield: '_all'
  37. }
  38. );