Hi Mukesh, You cannot use if-else or for loop in patterndb, you can only set pattern matching rules, to classify the incoming log messages. The oldest Admin Guide I have found is for 3.5: https://www.syslog-ng.com/technical-documents/list/syslog-ng-open-source-edi... Chapter 13 is about patterndb. Can you tell us your use case? What do you want to achieve by using if-else and for loop in the patterndb xml? Cheers, Attila ________________________________ From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of mukesh kumar <mkkumar20@gmail.com> Sent: Monday, February 1, 2021 6:50 AM To: syslog-ng-owner@lists.balabit.hu <syslog-ng-owner@lists.balabit.hu>; syslog-ng@lists.balabit.hu <syslog-ng@lists.balabit.hu> Subject: [syslog-ng] Syslog-ng 3.4.5 support question CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe. Hi, We are using syslog-ng 3.4.5 version and we are using it to utilize patterndb. We are not looking for bug fix but using it for just all the different ways we can use the patterndb xml. Please provide me the info on such as the IF and ELSE statements, For loops in the xml file. Thanks, Mukesh Kumar