AAP-36536 Send job_lifecycle logs to external loggers (#15701)

* Send job_lifecycle logs to external loggers

* Include structured data in message

* Attach the organization_id of the job
This commit is contained in:
Alan Rominger
2024-12-16 15:49:16 -05:00
committed by GitHub
parent 86d202456a
commit 36c75a2c62
5 changed files with 11 additions and 4 deletions

View File

@@ -592,7 +592,7 @@ register(
register(
'LOG_AGGREGATOR_LOGGERS',
field_class=fields.StringListField,
default=['awx', 'activity_stream', 'job_events', 'system_tracking', 'broadcast_websocket'],
default=['awx', 'activity_stream', 'job_events', 'system_tracking', 'broadcast_websocket', 'job_lifecycle'],
label=_('Loggers Sending Data to Log Aggregator Form'),
help_text=_(
'List of loggers that will send HTTP logs to the collector, these can '
@@ -602,6 +602,7 @@ register(
'job_events - callback data from Ansible job events\n'
'system_tracking - facts gathered from scan jobs\n'
'broadcast_websocket - errors pertaining to websockets broadcast metrics\n'
'job_lifecycle - logs related to processing of a job\n'
),
category=_('Logging'),
category_slug='logging',