Page MenuHomeSoftware Heritage

deposit: add request duration on access logs
ClosedPublic

Authored by vsellier on Feb 2 2021, 7:05 PM.

Details

Summary

Related to T2787

Test Plan
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
  Apache::Vhost[deposit.softwareheritage.org_non-ssl] =>
   parameters =>
     access_log_format =>
      - false
      + combined_with_duration
*******************************************
  Concat::Fragment[deposit.softwareheritage.org_non-ssl-access_log] =>
   parameters =>
     content =>
      -   CustomLog "/var/log/apache2/deposit.softwareheritage.org_non-ssl_access.log" combined_
      +   CustomLog "/var/log/apache2/deposit.softwareheritage.org_non-ssl_access.log" "combined_with_duration"_
*******************************************
  Concat_fragment[deposit.softwareheritage.org_non-ssl-access_log] =>
   parameters =>
     content =>
      -   CustomLog "/var/log/apache2/deposit.softwareheritage.org_non-ssl_access.log" combined_
      +   CustomLog "/var/log/apache2/deposit.softwareheritage.org_non-ssl_access.log" "combined_with_duration"_
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.
This revision is now accepted and ready to land.Feb 2 2021, 8:01 PM

configure filebeat to check the right file based on the vhost
add some additional fields to help the message filtering