2 Replies Latest reply on Apr 11, 2014 4:20 AM by mmalagni

    Adding hostname in the rotated access log

    mmalagni

      All,

       

      Is there a way to automatically add hostname of webgateway in a cluster environment during the rotation and push of a log to an FTP location?

       

      Best

       

      Matteo

        • 1. Re: Adding hostname in the rotated access log
          asabban

          When you configure the push destination the "destination" field accepts the following variables:

           

          When the log files are pushed, the variable is replaced with the appropriate value, which is a host name in this example.

          The variables you can use here include:

          %h — Host name of an appliance
          %y — Current year (four digits)
          %m — Current month (one or two digits)
          %% — Used for specifying the % character (if it is to occur in a host name)
          • 2. Re: Adding hostname in the rotated access log
            mmalagni

            Hi Andre and thanks,

             

            but I'm taling specifically for the file name, not the destination folder variable...

             

            Better, when a log file is pushed in a cluster environment it adds automatically the IP address of the machine where it is sent from...

             

            Is it possible to modify that value and show the HOST name?

             

            I don't want to use anymore different log handler, because we are having an issue with version 7.3.2.7 documented in a case that we opened and for which a BZ has been created (SR: 4-5610434934)

             

            Thanks

             

            M.