Closed davidtluong closed 6 months ago
Running omc logs doesn't display full logs at times, example (giving last lines only):
2024-04-25T10:27:16.123509482Z ------------------------------------------------------------------------------- 2024-04-25T10:27:16.136898334Z {"level":"error","ts":1714040836.136772,"logger":"logging_event_handler","msg":"","name":"tower-na1","namespace":"tower","gvk":"automationcontroller.ansible.com/v1beta1, Kind=AutomationController","event_type":"runner_on_failed","job":"7146056215829118087","EventData.Task":"Apply deployment resources","EventData.TaskArgs":"","EventData.FailedTaskPath":"/opt/ansible/roles/installer/tasks/resources_configuration.yml:248","error":"[playbook task failed]","stacktrace":"github.com/operator-framework/operator-sdk/internal/ansible/events.loggingEventHandler.Handle\n\toperator-sdk/internal/ansible/events/log_events.go:111"}
What the last lines of the log file is:
2024-05-01T16:49:13.191554233Z 2024-05-01T16:49:13.191554233Z ----- Ansible Task Status Event StdOut (automationcontroller.ansible.com/v1beta1, Kind=AutomationController) ----- 2024-05-01T16:49:13.191554233Z 2024-05-01T16:49:13.191554233Z 2024-05-01T16:49:13.191554233Z PLAY RECAP ********************************************************************* 2024-05-01T16:49:13.191554233Z localhost : ok=84 changed=0 unreachable=0 failed=0 skipped=80 rescued=0 ignored=1 2024-05-01T16:49:13.191554233Z 2024-05-01T16:49:13.191554233Z 2024-05-01T16:49:13.191554233Z ----------
For context, this file is 19837 lines long and 6.0M.
@rh-dluong I've done a test with a file of 95622 lines and 23M, it worked well, so please share the must-gather you are using, either here with the sensitive data obfuscated or on Slack, thank you!
Running omc logs doesn't display full logs at times, example (giving last lines only):
What the last lines of the log file is:
For context, this file is 19837 lines long and 6.0M.