From f458befee7b121a8f318300808f55f4c885485dc Mon Sep 17 00:00:00 2001 From: Anki Narravula Date: Tue, 26 Nov 2024 20:47:36 +0530 Subject: [PATCH] Update syslogfromcsv.py --- Tools/Syslog-cef-data-replicator/syslogfromcsv.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tools/Syslog-cef-data-replicator/syslogfromcsv.py b/Tools/Syslog-cef-data-replicator/syslogfromcsv.py index 80818447ac8..6dce7419cd0 100644 --- a/Tools/Syslog-cef-data-replicator/syslogfromcsv.py +++ b/Tools/Syslog-cef-data-replicator/syslogfromcsv.py @@ -126,6 +126,7 @@ def get_kv_pairs_csv(headers, record): def syslog_message_format(args,schemaSampledata,extenstion_data): + return_message = "" try: if str(args.eventtype).lower() == 'cef': cef_header = {} @@ -243,9 +244,7 @@ def build_message_csv(args, headers): #print(schemaSampledata) - if args.eventtype == 'syslog': - KVDelimiter = KVDelimiter - else: + if args.eventtype != 'syslog': KVDelimiter = "=" now = datetime.datetime.now()