Skip to content

Commit

Permalink
Syslog security filter: add 'ident' value to logged message
Browse files Browse the repository at this point in the history
  • Loading branch information
mgladi committed Jul 13, 2016
2 parents 1672100 + b8573d4 commit 62b57ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/code/plugins/filter_syslog_security.rb
Expand Up @@ -37,7 +37,7 @@ def filter(tag, time, record)
record['Timestamp'] = OMS::Common.format_time(Time.now.to_f)
record['EventTime'] = OMS::Common.format_time(time)

record['Message'] = record['message']
record['Message'] = record['ident'] + ': ' + record['message']
record.delete 'message'
record.delete 'time'

Expand Down

1 comment on commit 62b57ed

@saizprua
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Please sign in to comment.