[syslog-ng] add-contextual-data()

Scot Needy scotrn at gmail.com
Tue Oct 18 23:01:08 UTC 2016


Tried adding this way and seems to be looking for the tag rather than adding. 
Logging stopped for this filter. 
 
filter f_192_168_1_0 {
        netmask(192.168.1.0/24);
        tags(“VMware_ESX");
        };


> On Oct 18, 2016, at 6:12 PM, Scot Needy <scotrn at gmail.com> wrote:
> 
> 
> Could I leverage this type of CSV to add VLAN ID and VLAN description tags if I already have 
> 
> filter f_192_168_1_0 { netmask(192.168.1.0/24);};
> 
> 
> VLAN_Descriptions.csv 
> VLANID,	VLAN Description,	subnet/24 
> 43,	Database_#14141,	192.168.1.1/24 
> 
> filter f_192_168_1_0 { 
> 	netmask(192.168.1.0/24);
> 	add-contextual-data(
>  	selector($IP is in f_192_168_1_0 or something specific?????/)
>    	database(“/opt/syslog-ng/etc/VLAN_Descriptions.csv")
>    	default-selector("unknown-hostname")
> 	);
> 
> };
> 
> 
> 



More information about the syslog-ng mailing list