Skip to content

Commit

Permalink
Merge pull request #81 from redBorder/development
Browse files Browse the repository at this point in the history
Release 4.0.0
  • Loading branch information
manegron authored Dec 25, 2024
2 parents ebe54d2 + 2da3916 commit ff35d01
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 52 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
cookbook-logstash CHANGELOG
===============

## 4.0.0

- manegron
- [bd193fc] remove space
- [69bb4b7] Dont incident_enrichment if is already enriched
- [43b5113] Remove alarms from vault pipeline

## 3.3.0

- Miguel Negrón
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 '3.3.0'
version '4.0.0'
11 changes: 3 additions & 8 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,9 @@
notifies :restart, 'service[logstash]', :delayed unless node['redborder']['leader_configuring']
end

template "#{pipelines_dir}/vault/06_alarms.conf" do
source 'vault_alarms.conf.erb'
owner user
group user
mode '0644'
ignore_failure true
cookbook 'logstash'
notifies :restart, 'service[logstash]', :delayed unless node['redborder']['leader_configuring']
# We dont need this file anymore as is parsed by rsyslog
file "#{pipelines_dir}/vault/06_alarms.conf" do
action :delete
end

# Renamed so we clean the old file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
filter {
incident_enrichment {
incident_fields => ["src","src_port", "dst", "dst_port"]
source => "redBorder Intrusion"
incidents_priority_filter => "<%= @intrusion_incidents_priority_filter %>"
if ![incident_uuid] {
incident_enrichment {
incident_fields => ["src","src_port", "dst", "dst_port"]
source => "redBorder Intrusion"
incidents_priority_filter => "<%= @intrusion_incidents_priority_filter %>"
}
}
}
30 changes: 0 additions & 30 deletions resources/templates/default/vault_alarms.conf.erb

This file was deleted.

20 changes: 11 additions & 9 deletions resources/templates/default/vault_incident_enrichment.conf.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
filter {
incident_enrichment {
incident_fields => ["fromhost_ip"]
source => "redBorder Vault"
incidents_priority_filter => "<%= @vault_incidents_priority_filter %>"
field_scores => {
"fromhost_ip" => 100
}
field_map => {
"fromhost_ip" => "ip"
if ![incident_uuid] {
incident_enrichment {
incident_fields => ["fromhost_ip"]
source => "redBorder Vault"
incidents_priority_filter => "<%= @vault_incidents_priority_filter %>"
field_scores => {
"fromhost_ip" => 100
}
field_map => {
"fromhost_ip" => "ip"
}
}
}
}

0 comments on commit ff35d01

Please sign in to comment.