Skip to content

Commit

Permalink
Merge pull request #59 from redBorder/development
Browse files Browse the repository at this point in the history
Release 2.4.1
  • Loading branch information
rgomezborder authored Sep 4, 2024
2 parents cf6df39 + 034df07 commit dbccece
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-logstash CHANGELOG
===============

## 2.4.1

- Pablo Pérez
- [3ef6f83] Added the incident priority filter

## 2.4.0

- JuanSheba
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
maintainer_email 'git@redborder.com'
license 'AGPL-3.0'
description 'Installs/Configures cookbook-logstash'
version '2.4.0'
version '2.4.1'
7 changes: 7 additions & 0 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
hash_function: node['redborder']['rsyslog']['hash_function'] }
end

begin
incidents_priority_filter = node['redborder']['incidents_priority_filter']
rescue
incidents_priority_filter = 'high'
end

begin
monitors_dg = data_bag_item('rBglobal', 'monitors')
rescue
Expand Down Expand Up @@ -858,6 +864,7 @@
mode '0644'
ignore_failure true
cookbook 'logstash'
variables(incidents_priority_filter: incidents_priority_filter)
notifies :restart, 'service[logstash]', :delayed
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ filter {
incident_enrichment {
incident_fields => ["src","src_port", "dst", "dst_port"]
source => "redBorder Intrusion"
incidents_priority_filter => "<%= @incidents_priority_filter %>"
}
}

0 comments on commit dbccece

Please sign in to comment.