Skip to content

Commit

Permalink
Merge pull request #78 from redBorder/bugfix/19477_wrong_sensor_name_…
Browse files Browse the repository at this point in the history
…in_sflow_pipeline

Bugfix/19477 wrong sensor name in sflow pipeline
  • Loading branch information
jsotofernandez authored Jan 23, 2025
2 parents 923ce35 + 7d9552c commit 3e38819
Showing 1 changed file with 3 additions and 3 deletions.
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 3e38819

Please sign in to comment.