Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AAP EDA] Collecting all log files from dir #3908

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions sos/report/plugins/aap_eda.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 Rudnei Bertol Jr <[email protected]>
# Copyright (c) 2025 Rudnei Bertol Jr <[email protected]>

# This file is part of the sos project: https://github.com/sosreport/sos
#
Expand All @@ -19,15 +19,20 @@ class AAPEDAControllerPlugin(Plugin, RedHatPlugin):
'automation-eda-controller-server')

def setup(self):
self.add_copy_spec([
"/etc/ansible-automation-platform/",
"/var/log/ansible-automation-platform/eda/worker.log*",
"/var/log/ansible-automation-platform/eda/scheduler.log*",
"/var/log/ansible-automation-platform/eda/gunicorn.log*",
"/var/log/ansible-automation-platform/eda/activation.log*",
"/var/log/nginx/automationedacontroller.access.log*",
"/var/log/nginx/automationedacontroller.error.log*",
])
if self.get_option("all_logs"):
self.add_copy_spec([
"/etc/ansible-automation-platform/",
"/var/log/ansible-automation-platform/eda/",
"/var/log/nginx/automationedacontroller.access.log*",
"/var/log/nginx/automationedacontroller.error.log*",
])
else:
self.add_copy_spec([
"/etc/ansible-automation-platform/",
"/var/log/ansible-automation-platform/eda/*.log",
"/var/log/nginx/automationedacontroller.access.log",
"/var/log/nginx/automationedacontroller.error.log",
])

self.add_forbidden_path([
"/etc/ansible-automation-platform/eda/SECRET_KEY",
Expand Down
Loading