Commit graph

3734 commits

Author SHA1 Message Date
Jordan Sissel
7dadd86f94 - Add error text template 2011-02-13 00:59:19 -08:00
Jordan Sissel
a1d375a4af - Graphs work again; uses new /api/histogram api
This finallys splits search results from data requests.
- Support POST and GET on /api/search
- Support text/html/json for searches
- Upgrade to jquery 1.5.0
2011-02-13 00:29:56 -08:00
Jordan Sissel
c8a55c1874 - Fix require_param 2011-02-13 00:29:34 -08:00
Jordan Sissel
d669639c99 - LogStash::Search::Result#to_json 2011-02-13 00:28:25 -08:00
Jordan Sissel
d0a5dfb5a0 - Report errors from search 2011-02-13 00:27:54 -08:00
Jordan Sissel
d674dd475e - More histogram work.
- Have LogStash::Search::ElasticSearch#histogram yield an error if one
  occurs
- /api/histogram reports an error now if 'q' param is missing
2011-02-12 22:48:33 -08:00
Jordan Sissel
5a7b833bef - to_json is called with a parameter? Hmm...
This: JSON::Ext::Generator::State

  But, facet queries work now :)
2011-02-10 10:42:13 -08:00
Jordan Sissel
35d262f463 - Start working on /api/histogram 2011-02-10 10:41:14 -08:00
Jordan Sissel
563e925f4c - LogStash::Search::ElasticSearch#histogram now yields a proper
LogStash::Search::FacetResult
2011-02-10 09:58:52 -08:00
Jordan Sissel
594f20213c - add more facet stuff 2011-02-10 09:45:31 -08:00
Jordan Sissel
59334d39bd - partial implementation LogStash::Search::ElasticSearch#histogram
Example:

    EM.run {
      s = LogStash::Search::ElasticSearch.new();
      s.histogram("REJECTED", "@timestamp", 60 * 60 * 1000) { |r|
        p :results => r
      }
    }

    Output:
    {:results=>#<LogStash::Search::FacetResult:0x7f14c1380a18
    @facets={"histo1"=>{1296759600000=>1, 1295344800000=>1,
    ...

The FacetResult class is not fully baked.
2011-02-10 00:16:52 -08:00
Jordan Sissel
31644cb5a2 - Update the web interface to use the new search api
- Add offset and total attributes LogStash:;Search::Result
- Added -b/--backend flag to logstash-web for specifying the url of the
  backend. Defaults to elasticsearch://localhost:9200

Still missing facets/graphs, but it's progress.
2011-02-09 22:17:13 -08:00
Jordan Sissel
7b0aef841b add extra output for now. 2011-02-09 03:21:52 -08:00
Jordan Sissel
15bb95dc87 - Start working on issue/30 (refactor the search api to be pluggable)
- Updated test_elasticsearch to use the new api, passes.
2011-02-09 03:19:23 -08:00
Jordan Sissel
106ff0bed6 - Allow specifying a port for elasticsearch 2011-02-06 18:33:29 -08:00
Jordan Sissel
44a5dbc71d - remove possibly superfluous event push (it was breaking the tests)
- use @logger, not $stderr.puts
2011-02-04 02:29:13 -08:00
Jordan Sissel
fae90d1ae6 - Add LogStash::Event#== 2011-02-04 02:28:55 -08:00
Jordan Sissel
88e2597983 - merge a.pager and a.querychanger click handler
- fix bug in param_parse
2011-02-03 13:02:12 -08:00
Jordan Sissel
5e67b5c22f - Fix click mangling. 2011-02-03 12:39:46 -08:00
Jordan Sissel
896442bbe6 - Add LogStash::Event.sprintf(str)
Takes a string. Replaces ${foo} with the event[foo] value. If no
  value, does not replace it.
- Allow grep to add_tags and add_fields with values from the event.
  Useful for adding tags/fields for nagios alerts and other such
  goodness.
- Add tests for grep add_{fields,tags} with a format string as above.
- Add some TODOs for possible confusion cleanup needed.
2011-02-03 02:20:28 -08:00
Jordan Sissel
5f0bdcb8bd - Small style changes 2011-02-03 01:34:59 -08:00
Jordan Sissel
2576786ce1 Merge branch 'master' of https://github.com/startupseven/logstash into pull/10 2011-02-03 01:30:46 -08:00
Jordan Sissel
51cbf33cd0 - Use -a/--address instead of -H/--host 2011-02-03 01:28:49 -08:00
Jordan Sissel
5fad88ab96 Merge branch 'master' of https://github.com/pusewicz/logstash into pull/9 2011-02-03 01:27:31 -08:00
Ryan Ausanka-Crues
d88ec2fcd7 Revert "Revert "- Add user/pass support for amqp output""
This reverts commit 2f74f97217.
2011-02-02 20:35:01 -08:00
Ryan Ausanka-Crues
2f74f97217 Revert "- Add user/pass support for amqp output"
This reverts commit b6c217d32d.
2011-02-02 20:12:52 -08:00
Ryan Ausanka-Crues
543fa984c4 Merge branch 'master' of git://github.com/logstash/logstash 2011-02-02 19:09:35 -08:00
Jordan Sissel
c0d833cbb5 - add todo
- toss exception if we can't configure the index
2011-02-02 15:03:43 -08:00
Jordan Sissel
b6c217d32d - Add user/pass support for amqp output
http://code.google.com/p/logstash/issues/detail?id=23
2011-01-27 14:46:07 +08:00
Ryan Ausanka-Crues
8239656efc Change nil check to use nil? instead of == per Mike Lewis' suggestion 2011-01-25 14:07:54 -08:00
Piotr Usewicz
9d2ab40d44 Add options to set host and port 2011-01-25 16:14:39 +00:00
Tello, Inc
36f53a60fc Merge branch 'master' of github.com:startupseven/logstash 2011-01-24 21:23:39 +00:00
Tello, Inc
80a3248f90 Don't treat empty string the same as nil when performing negate grep matching 2011-01-24 21:23:30 +00:00
Ryan Ausanka-Crues
f48488d051 Add comments to explain 'negate' in multiline filters 2011-01-23 12:05:56 -08:00
Ryan Ausanka-Crues
7c67be2ba8 Fix negate changes to match what was actually working on the test box. Also improve logging to include negate status 2011-01-22 16:10:58 -08:00
Ryan Ausanka-Crues
b1701cb37d Enable 'negate' modifier for multiline filter so that you can do more complex multi-line event matching 2011-01-22 16:08:21 -08:00
Jordan Sissel
63f06c17cc - Add user/pass support for amqp output
http://code.google.com/p/logstash/issues/detail?id=23
2011-01-22 14:37:40 -08:00
Jordan Sissel
609fd3f39a Extra type safety 2011-01-22 14:30:00 -08:00
ec2
d1013465b9 Change event '[]' method to check @data (not just @data[@fields]) if the key starts with '@' so that grep filtering can match standard parse values 2011-01-22 09:53:31 +00:00
ec2
b1ed54d286 Fix logstash crash caused by using @logging instead of @logger 2011-01-22 09:48:29 +00:00
Jordan Sissel
0266d59a7c - Backport Ruby 1.8.7 Regexp.union([array]) so Rack 1.2.1 works in Ruby
<= 1.8.6. This should fix issue
  http://code.google.com/p/logstash/issues/detail?id=5

  Tested in rvm with:
  'rvm 1.8.6 exec bin/logstash-web'
2011-01-17 22:43:40 -08:00
Jordan Sissel
85644f39d8 - Fix for ruby 1.9.x (via pull/5). 2011-01-13 16:06:47 -08:00
Jordan Sissel
3406d15eea - Fix the default suggested query 2011-01-11 10:21:05 -08:00
Jordan Sissel
04f04b91b1 - Add stdin:/// input 2011-01-11 10:20:46 -08:00
Jordan Sissel
48dd338c59 - Add 'negate' support to grep filter
- Add documentation for grep
2011-01-11 09:49:48 -08:00
Jordan Sissel
45d69beb22 - One final fix to this elasticsearch index type mapping hack. There's a
real fix, but I don't know what it is yet (need to talk with the ES
  folks)
2011-01-10 21:57:03 -08:00
Jordan Sissel
6608e2a97e Merge branch 'master' of github.com:logstash/logstash
Conflicts:
	lib/logstash/outputs/elasticsearch.rb
2011-01-10 21:45:28 -08:00
Jordan Sissel
d9d78927d8 - Try to work around some weird index type mapping bug/pebcak. 2011-01-10 21:38:55 -08:00
Jordan Sissel
5885c7156e - more work trying to fix up the elasticsearch output 2011-01-07 23:51:41 -08:00
Jordan Sissel
4654755e7d - Style cleanup. Tests still pass, so I probably didn't break anything ;) 2011-01-07 23:28:50 -08:00