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

Scot Needy scotrn at gmail.com
Tue Oct 18 22:12:10 UTC 2016


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