Skip to content

Commit

Permalink
Merge pull request #52 from logstash-plugins/fix_tag_on_failure_test
Browse files Browse the repository at this point in the history
Fix tag on failure test
  • Loading branch information
kaisecheng committed Dec 18, 2023
2 parents 4d54cce + 30260c3 commit 21bf247
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.2.1
- Fix tag on failure test [#52](https://github.com/logstash-plugins/logstash-filter-json/pull/52)

## 3.2.0
- Feat: check target is set in ECS mode [#49](https://github.com/logstash-plugins/logstash-filter-json/pull/49)
- Refactor: logging improvements to print event details in debug mode
Expand Down
2 changes: 1 addition & 1 deletion logstash-filter-json.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|

s.name = 'logstash-filter-json'
s.version = '3.2.0'
s.version = '3.2.1'
s.licenses = ['Apache License (2.0)']
s.summary = "Parses JSON events"
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
Expand Down
5 changes: 3 additions & 2 deletions spec/filters/json_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
end

logstash_version = Gem::Version.create(LOGSTASH_CORE_VERSION)

if (Gem::Requirement.create('>= 7.0').satisfied_by?(logstash_version) ||

# Field Reference can handle special characters since 8.3.0
if ((Gem::Requirement.create('>= 7.0').satisfied_by?(logstash_version) && Gem::Requirement.create('< 8.3').satisfied_by?(logstash_version)) ||
(Gem::Requirement.create('~> 6.4').satisfied_by?(logstash_version) && LogStash::SETTINGS.get('config.field_reference.parser') == 'STRICT'))
describe "unsupported field name using `target`" do
config <<-CONFIG
Expand Down

0 comments on commit 21bf247

Please sign in to comment.