Hi,You can extract values from $MSG by using regexps (by using a regexp based filter with the flags(store-matches) option), or by using csv-parser() with a custom separator (this should be faster) or even db-parser. In any case, once you extracted the server name just make sure to store it in $HOST and then you can use $HOST in your destination filename.On Mon, Mar 23, 2020 at 7:16 PM Syslogng <syslogng@master666.com> wrote:--Bazsi______________________________________________________________________________Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ngHi,We receive aggregated syslog from a server (all logs are send from 1 IP). Also all the events are mixed.The name of the host sending the initial traffic is in each event.ex:How to recover SER1 which is always preceded by "original_source=" and followed by "example.com" to save it in a file for example /data/serv1.logI don't want a static filter (I know how to do it) but a dynamic one. If a new event arrives at original_source=SERV2.example.comI would like it to automatically create a /data/serv2.logCould you help me please ?thank you in advancePit______________________________________________________________________________Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng