Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2245

Option to save logs to a file in containerized installation of AAP

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.5
    • controller
    • False
    • Hide

      None

      Show
      None
    • False

      Description:

      In case of containerized installation we can check the logs using the journalctl command however, the logs are not saved to a file.

      In RPM based installation we could check the logs in tower.log or job_lifecycle.log files.

      Cu is able to check the logs using journalctl command but want this to be saved in a file.

      Cu is using the following workaround for now which is not tested and hence not supported:

       

      vim /etc/system/journal.conf
      # forward all messages to the local syslog daemon
      ForwardToSyslog=yes
      # point it at your bind-mounted socket
      SyslogSocket=/home/aap/aap/controller/rsyslog/run/rsyslog.sock
      vim  /etc/rsyslog.d/30-journal.conf 
      # /etc/rsyslog.d/30-journal.conf
      # Use the imjournal input module (preferred) to read from the journal socket
      module(load="imjournal" StateFile="imjournal.state")
      # Write everything to a single plain-text file
      *.*    -/var/log/journal.log
      

      Looking for a supported way to achieve this.

       

              Unassigned Unassigned
              rhn-support-kkinge Krutika Kinge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: