Skip to content

Commit 6c4b6e6

Browse files
mew1033jettero
authored andcommitted
Filter bad host values on queue log messages
1 parent 2aa7882 commit 6c4b6e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hubblestack/utils/stdrec.py

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def update_payload(payload):
116116
payload['event'] = dict()
117117
if isinstance(payload['event'], dict):
118118
payload['event'].update(std_info())
119+
if not payload.get('host'):
120+
payload['host'] = get_fqdn()
119121
fields = index_extracted(payload)
120122
if fields:
121123
payload['fields'] = fields

0 commit comments

Comments
 (0)