Skip to content

Commit

Permalink
Update syslogfromcsv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-narravula committed Nov 26, 2024
1 parent 0741b41 commit f458bef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tools/Syslog-cef-data-replicator/syslogfromcsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f458bef

Please sign in to comment.