Commit graph

761 commits

Author SHA1 Message Date
Jordan Sissel
b55684d3fe - Fix filter execution for filters that emit multiple events (clone,
split)
- fix codec initialization
- remove unreleased+deprecated features from filters/base
- deprecate the multiline filter (see the new multiline codec)
- skip date filter tests when we aren't on jruby
2013-06-14 23:06:24 -07:00
Jordan Sissel
66b1a54d80 - Implement multiline features as a codec.
- Disable the multiline filter with an error message that tells the user
  to use the codec instead.
2013-06-14 23:05:31 -07:00
Jordan Sissel
2d95e86e99 - wip improving the config parser and making tests pass. 2013-06-14 20:56:21 -07:00
Jordan Sissel
0caa68a494 Update test description to be more accurate 2013-06-14 13:20:52 -07:00
Jordan Sissel
937cbf2dfc - remove event v0 tests (no longer needed)
- make event tests pass again.
2013-06-14 12:30:00 -07:00
Nick Ethier
1f58ac5b9e more codec tests 2013-06-07 23:40:10 -06:00
Nick Ethier
4f13b51ffd start codec tests 2013-06-04 21:49:43 -06:00
Jordan Sissel
e98528c1ea - Tell Joda to parse with the current year as default.
This allowed me to remove a bunch of old code that tried to compensate
  and work around that limitation. I believe at some point Joda added
  withDefaultYear() to the DateTimeFormatter class, which is what
  is now used. Woo!
2013-06-04 17:59:32 -07:00
Jordan Sissel
bff6d56168 Merge branch 'master' into codec-hacking 2013-06-04 13:33:22 -07:00
Jordan Sissel
2ceba13540 Add an older support-originating test I forgot to commit 2013-06-04 13:29:13 -07:00
Nick Ethier
ae5c473ffc Get tests working for eventv1. 2013-06-03 14:56:32 -06:00
Nick Ethier
389327708e split out event rspecs 2013-06-03 14:55:58 -06:00
Jordan Sissel
128c350edf Fix some support-originating specs 2013-06-03 12:52:50 -07:00
Jordan Sissel
8662969cd9 A recent change to the test_utils.rb made filter yields appear earlier than the 'return' event, so updating the clone test to acknowledge the order change 2013-06-03 00:49:15 -07:00
Jordan Sissel
ea4f4ddcee Disable the 'prune' filter spec because the test should have always failed, but it didn't, and I'm not sure what to do next... 2013-06-03 00:45:19 -07:00
Jordan Sissel
4a9eafbafb - fix multiline specs
- added 'source' setting to multiline filter now that there's no
required "@message" field (due to event v1 schema)
2013-06-03 00:21:45 -07:00
Jordan Sissel
2dee0758aa - fix alter filter specs 2013-06-02 22:53:09 -07:00
Jordan Sissel
47ff9e8a6a - fix xml specs 2013-06-02 22:44:06 -07:00
Jordan Sissel
1e8ae1f1c6 - fix useragent specs 2013-06-02 22:38:47 -07:00
Jordan Sissel
c23ddcabb7 - fix translate filter specs 2013-06-02 22:31:15 -07:00
Jordan Sissel
2ea1041ae6 - fix split filter specs 2013-06-02 22:29:36 -07:00
Jordan Sissel
2c950fb585 - fix range filter specs 2013-06-02 22:14:34 -07:00
Jordan Sissel
e58845f34d - try to fix prune specs, but I think there are actually bugs found by
the tests that need fixing now.
2013-06-02 22:14:34 -07:00
Jordan Sissel
7c8fa06c62 - fix noop specs 2013-05-30 23:27:20 -07:00
Jordan Sissel
e200f60805 fix mutate specs (broken when grok defaulted singles=>true) 2013-05-30 23:16:57 -07:00
Jordan Sissel
fbde2340e0 - fix kv specs 2013-05-30 23:15:11 -07:00
Jordan Sissel
45b1fe4ff1 - fix json specs 2013-05-30 22:52:25 -07:00
Jordan Sissel
843f0dfecf - fix grep specs 2013-05-30 22:26:56 -07:00
Jordan Sissel
9306bf6b51 - fix geoip specs 2013-05-30 22:17:53 -07:00
Jordan Sissel
023795ae22 - fix dns specs 2013-05-30 22:17:01 -07:00
Jordan Sissel
0bfdfb5e95 - fix csv specs 2013-05-30 22:14:17 -07:00
Jordan Sissel
55c95a076b Fix a few clone spec failures 2013-05-30 22:14:17 -07:00
Jordan Sissel
a005f0abf1 - make anonymize specs pass under event v1 2013-05-29 20:09:00 -07:00
Jordan Sissel
a9c35251b3 - make mutate specs pass in event v1 2013-05-29 20:05:04 -07:00
Jordan Sissel
d994b10b56 - fix date perf test (which runs 30% faster than logstash v1.1.12) 2013-05-29 19:43:18 -07:00
Jordan Sissel
48e23f7ac6 - date filter specs now passing against event v1 2013-05-29 19:35:09 -07:00
Jordan Sissel
fb7e454854 - grok tests now pass under event v1
- Added 'overwrite' setting to allow %{FOO:message} to overwite
  'message' field (or any other field.
2013-05-29 16:45:50 -07:00
Jordan Sissel
2fc639bc78 - all event tests now passing with event v1
- make event v1 the default.
2013-05-29 16:09:54 -07:00
Jordan Sissel
e494fb9a8c Make event specs pass under event_v1
This required implementing Event#append. Some semantics have changed.
"@message" and "@tags" are no longer handled specially (mainly because
they aren't described by event v1 schema). This likely has broken the
multiline filter tests (intentionally). The multiline filter will need
to have custom merging of certain fields (like joining message with
newlines instead of putting it all in an array)
2013-05-29 15:55:24 -07:00
Wes Maldonado
bdb4cd0cc7 Remove date filter from haproxy parsing example. 2013-05-29 11:23:44 -07:00
Jordan Sissel
86dc8ba4cc Merge pull request #480 from wiibaa/output-mails
Allow @message, @source etc in match for email output
2013-05-28 23:59:03 -07:00
Jordan Sissel
cc3afac259 Merge pull request #420 from piavlo/filter/range2
Filter/range
2013-05-28 23:52:19 -07:00
Jordan Sissel
deaee4b272 Merge pull request #432 from piavlo/feature/base-filter-changes
enhanced base filter logic
2013-05-28 23:51:06 -07:00
Jordan Sissel
f638e379f8 - add documentation for sqlite input w/ example
- style cleanup
- exponential backoff when no new rows are found
- store columns as fields
2013-05-28 23:20:18 -07:00
Jordan Sissel
7e6ae5d6c8 Merge pull request #470 from wiibaa/date-tz
Specify Timezone in date filter

Conflicts:
	CHANGELOG
	lib/logstash/filters/date.rb
2013-05-28 22:17:49 -07:00
Jordan Sissel
6c6c5bba2e Merge pull request #491 from electrical/target_for_geoip
Add optional target field for geoip filter
2013-05-28 16:58:54 -07:00
Jordan Sissel
1041016bbf Merge pull request #403 from wiibaa/grep-params
Allow repeating a field in the hash config . Fix LOGSTASH-919

Conflicts:
	CHANGELOG
2013-05-28 15:52:19 -07:00
Jordan Sissel
ea06094c72 Merge pull request #444 from piavlo/feature/kv-filter-includes-excludes
Feature - kv filter includes/excludes and default key-values
- Also removed the deprecated 'container' tests

Conflicts:
	lib/logstash/filters/kv.rb
2013-05-28 15:38:03 -07:00
Richard Pijnenburg
a7c7c4ed2e Add optional target field for geoip filter 2013-05-27 23:14:51 +02:00
Wiibaa
cb3d326395 correct tests with deprecated config 2013-05-16 14:48:30 +02:00