File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -128,3 +128,8 @@ filter f_is_source_identified{
128
128
filter f_is_agg{
129
129
tags("agg");
130
130
};
131
+
132
+ filter f_is_proxy_ip{
133
+ "$HOST" eq "$SOURCEIP"
134
+ and "$PROXIED_SRCIP" ne ""
135
+ };
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ source s_internal {
114
114
or match("Syslog connection closed; fd=" value("MESSAGE"))
115
115
or match("Syslog connection accepted; fd=" value("MESSAGE"))
116
116
or match("xml-parser failed; " value("MESSAGE"))
117
+ or match("Initializing PROXY protocol source driver" value("MESSAGE"))
117
118
};
118
119
rewrite(r_set_dest_splunk_null_queue);
119
120
};
Original file line number Diff line number Diff line change @@ -114,6 +114,13 @@ source s_{{ port_id }} {
114
114
);
115
115
};
116
116
{% - endif %}
117
+
118
+ {% - if use_proxy_connect == True %}
119
+ rewrite {
120
+ set("$PROXIED_SRCIP", value("HOST") condition(filter(f_is_proxy_ip)) );
121
+ };
122
+ {% - endif %}
123
+
117
124
if {
118
125
if {
119
126
parser {
@@ -396,6 +403,13 @@ source s_{{ port_id }} {
396
403
{% - endif %}
397
404
{% - endfor %}
398
405
};
406
+
407
+ {% - if use_proxy_connect == True %}
408
+ rewrite {
409
+ set("$PROXIED_SRCIP", value("HOST") condition(filter(f_is_proxy_ip)) );
410
+ };
411
+ {% - endif %}
412
+
399
413
{% - if vendor and product %}
400
414
parser {
401
415
p_set_netsource_fields(
You can’t perform that action at this time.
0 commit comments