Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions package/etc/conf.d/sources/source_syslog/plugin.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,13 @@ source s_{{ port_id }} {
rewrite {
set('$(lowercase "$HOST")' value(HOST));
};
{%- if not vendor or not product %}
{%- if use_vpscache == True %}
{%- if ( (not vendor or not product) and
(use_vpscache == True) ) %}
if {
parser(p_vpst_cache);
};
{%- endif %}
{%- if vendor and product %}
if {
parser(vendor_product_by_source);
};
Expand Down Expand Up @@ -428,12 +429,13 @@ source s_{{ port_id }} {
rewrite {
set('$(lowercase "$HOST")' value(HOST));
};
{%- if not vendor or not product %}
{%- if use_vpscache == True %}
{%- if ( (not vendor or not product) and
(use_vpscache == True) ) %}
if {
parser(p_vpst_cache);
};
{%- endif %}
{%- if vendor and product %}
if {
parser(vendor_product_by_source);
};
Expand Down Expand Up @@ -481,4 +483,4 @@ source s_{{ port_id }} {
};
};
{%- endif %}
};
};