AWX Logs - Not able to link schedule log with workflow Job

Hi All,

We are using AWX version 10.0.0.

We are not able to link the schedule with a workflow event. Please find below sample event

Schedule event
{“@timestamp”: “2020-06-02T14:47:46.278Z”, “message”: “Activity Stream update entry for schedule”, “host”: “awx-0”, “level”: “INFO”, “logger_name”: “awx.analytics.activity_stream”, “stack_info”: null, “changes”: {“rrule”: “DTSTART;TZID=Asia/Kolkata:20200602T201800 RRULE:FREQ=DAILY;INTERVAL=1;COUNT=1”, “name”: “Ajit Sch test”, “description”: “every day for 1 time”, “extra_data”: “{}”, “inventory”: null, “scm_branch”: null, “job_type”: null, “job_tags”: null, “skip_tags”: null, “limit”: null, “diff_mode”: null, “verbosity”: null, “unified_job_template”: “Workflow Test-10”, “enabled”: true, “id”: 6}, “relationship”: “”, “actor”: “admin”, “operation”: “create”, “object1”: “schedule”, “object2”: “”, “cluster_host_id”: “awx-0”, “tower_uuid”: null}

Job event:
{“@timestamp”: “2020-06-02T14:48:27.041Z”, “message”: “Event data saved.”, “host”: “”, “level”: “INFO”, “logger_name”: “awx.analytics.job_events”, “id”: null, “modified”: null, “event”: “verbose”, “event_data”: {}, “failed”: false, “changed”: false, “uuid”: “b39d820f-d584-4163-aed6-5064a6bd01f3”, “playbook”: “”, “play”: “”, “role”: “”, “task”: “”, “counter”: 1, “stdout”: "SSH password: ", “verbosity”: 0, “start_line”: 0, “end_line”: 1, “created”: null, “job”: 39, “host_name”: “”, “parent_uuid”: “”, “event_display”: “Verbose”, “workflow_job_id”: 38, “cluster_host_id”: “awx-0”, “tower_uuid”: null}

{“@timestamp”: “2020-06-02T14:48:27.699Z”, “message”: “Event data saved.”, “host”: “”, “level”: “INFO”, “logger_name”: “awx.analytics.job_events”, “id”: null, “modified”: null, “event”: “playbook_on_start”, “event_data”: {“playbook”: “create_directory.yml”, “playbook_uuid”: “6854d611-2c88-48af-9189-d261a0b94136”, “uuid”: “6854d611-2c88-48af-9189-d261a0b94136”}, “failed”: false, “changed”: false, “uuid”: “6854d611-2c88-48af-9189-d261a0b94136”, “playbook”: “create_directory.yml”, “play”: “”, “role”: “”, “task”: “”, “counter”: 2, “stdout”: “”, “verbosity”: 0, “start_line”: 1, “end_line”: 1, “created”: “2020-06-02T14:48:27.000Z”, “job”: 39, “host_name”: “”, “parent_uuid”: “”, “event_display”: “Playbook Started”, “workflow_job_id”: 38, “cluster_host_id”: “awx-0”, “tower_uuid”: null}

Generally, when we run the workflows manually, it does create a event with Object1: Workflow_Job, however with scheduled workflows, it is not generating this event, so we are not able to link the schedule with workflows. Please help

Regards,
Ajit

Hi All,

Tried with AWX version 11.0.0 as well. It is creating a workflow_job object, however, not showing any link to schedule.

Schedule Object

{
“object2” => “”,
“changes” => {
“rrule” => [
[0] “DTSTART;TZID=Asia/Kolkata:20200603T205300 RRULE:FREQ=MINUTELY;INTERVAL=2”,
[1] “DTSTART;TZID=Asia/Kolkata:20200603T215500 RRULE:FREQ=MINUTELY;INTERVAL=2”
],
“extra_data” => [
[0] “{}”,
[1] “”
]
},
“summary_fields” => {
“schedule” => [
[0] {
“id” => 8,
“name” => “Ajit SCH test”,
“description” => “”
}
],
“workflow_job_template” => [
[0] {
“id” => 10,
“name” => “Workflow Test - TTT”,
“description” => “”
}
],
“actor” => {
“first_name” => “”,
“username” => “admin”,
“id” => 1,
“last_name” => “”
}
},
“level” => “INFO”,
“operation” => “update”,
“tower_uuid” => nil,
“object1” => “schedule”,
@version” => “1”,
“stack_info” => nil,
“relationship” => “”,
@timestamp” => 2020-06-03T15:56:05.152Z,
“message” => “Activity Stream update entry for schedule”,
“actor” => “admin”,
“headers” => {
“http_host” => “10.107.100.50:8080”,
“content_type” => “application/json; charset=utf-8”,
“http_user_agent” => nil,
“http_accept” => “/”,
“content_length” => “831”,
“http_version” => “HTTP/1.1”,
“request_path” => “/”,
“request_method” => “POST”
},
“logger_name” => “awx.analytics.activity_stream”,
“host” => “10.0.182.16”,
“cluster_host_id” => “awx-84786965d-sztrh”
}

Workflow_job Object

{
“object2” => “”,
“changes” => {
“allow_simultaneous” => false,
“is_sliced_job” => false,
“webhook_guid” => “”,
“webhook_service” => “”,
“limit” => nil,
“webhook_credential” => nil,
“description” => “”,
“id” => 291,
“extra_vars” => “{}”,
“name” => “Workflow Test - TTT”,
“workflow_job_template” => “Workflow Test - TTT-10”,
“inventory” => nil,
“job_template” => nil,
“scm_branch” => nil
},
“summary_fields” => {
“workflow_job” => [
[0] {
“id” => 291,
“name” => “Workflow Test - TTT”,
“description” => “”
}
]
},
“level” => “INFO”,
“operation” => “create”,
“tower_uuid” => nil,
“object1” => “workflow_job”,
@version” => “1”,
“stack_info” => nil,
“relationship” => “”,
@timestamp” => 2020-06-03T16:00:01.718Z,
“message” => “Activity Stream update entry for workflow_job”,
“actor” => nil,
“headers” => {
“http_host” => “10.107.100.50:8080”,
“content_type” => “application/json; charset=utf-8”,
“http_user_agent” => nil,
“http_accept” => “/”,
“content_length” => “826”,
“http_version” => “HTTP/1.1”,
“request_path” => “/”,
“request_method” => “POST”
},
“logger_name” => “awx.analytics.activity_stream”,
“host” => “10.0.182.16”,
“cluster_host_id” => “awx-84786965d-sztrh”
}

Please help

Regards,
Ajit