Commit 45780dc4 authored by rsmith013's avatar rsmith013
Browse files

Added access log fifo pipe and modified valve not to rotate. renameOnRotate...

Added access log fifo pipe and modified valve not to rotate. renameOnRotate setting means that the timestamp will not be included until rotated. These settings combined should mean that the pipe is never interrupted.
parent bbb20129
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ spec:
              mkfifo /thredds/logs/fmrc.log
              mkfifo /thredds/logs/threddsServlet.log
              mkfifo /thredds/logs/cache.log
              mkfifo /thredds/logs/localhost_access_log.txt
          {{- with .Values.data.securityContext }}
          securityContext: {{ toYaml . | nindent 12 }}
          {{- end }}
@@ -134,7 +135,7 @@ spec:
            {{- include "esgf.data.volumeMounts" . | nindent 12 }}
        # Tail the log pipes
        {{- $topContext := . }}
        {{- range (list "serverStartup.log" "catalogInit.log" "httpout.log" "featureCollectionScan.log" "fmrc.log" "threddsServlet.log" "cache.log") }}
        {{- range (list "serverStartup.log" "catalogInit.log" "httpout.log" "featureCollectionScan.log" "fmrc.log" "threddsServlet.log" "cache.log" "localhost_access_log.txt") }}
        - name: thredds-log-{{ trimSuffix ".log" . | lower }}
          {{ include "esgf.deployment.image" (list $topContext $thredds.image) }}
          args:
+4 −1
Original line number Diff line number Diff line
@@ -172,7 +172,10 @@
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
               pattern="%h %l %u %t &quot;%r&quot; %s %b"
               renameOnRotate="true"
               rotateable="false"
        />

      </Host>
    </Engine>