Skip to content

Commit

Permalink
Merge branch 'development' of github.com:redBorder/cookbook-logstash …
Browse files Browse the repository at this point in the history
…into bugfix/#20011_default_magic_is_not_working
  • Loading branch information
jsotofernandez committed Jan 23, 2025
2 parents 9e7fc82 + 2914a0f commit b60e0fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
cookbook-logstash CHANGELOG
===============

## 6.1.1

- nilsver
- [a0a9c77] check should be reversed
- [bc111d6] remove splittraffic_check

## 6.1.0

- David Vanhoucke
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 '6.1.0'
version '6.1.1'
6 changes: 3 additions & 3 deletions resources/templates/default/sflow_enrichment.conf.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
filter {
<% @flow_nodes.each do |flow_node| %>
<% if !flow_node[:ipaddress].nil? and !flow_node["redborder"].nil? and flow_node["redborder"]["blocked"]!=true %>
<% if @split_traffic_logstash %>
<% unless @split_traffic_logstash %>
if [sensor_ip] == "<%=flow_node[:ipaddress].to_s%>" {
<% end %>
<% @observation_id = (flow_node["redborder"]["observation_id"] and !flow_node["redborder"]["observation_id"].empty?) ? flow_node["redborder"]["observation_id"] : "default" %>
Expand All @@ -19,8 +19,8 @@ filter {
}
}
}
<% if @split_traffic_logstash %>
} # if [sensor_ip] == "<%=flow_node[:ipaddress].to_s%>"
<% unless @split_traffic_logstash %>
} # unless [sensor_ip] == "<%=flow_node[:ipaddress].to_s%>"
<% end %>
<% end %>
<% end %>
Expand Down

0 comments on commit b60e0fe

Please sign in to comment.