It's described on the CustomLog docs:
https://httpd.apache.org/docs/current/mod/mod_log_config.html#customlog

"The second argument specifies what will be written to the log file. It can
specify either a ***nickname*** defined by a previous LogFormat
<https://httpd.apache.org/docs/current/mod/mod_log_config.html#logformat>
directive, or it can be an explicit ***format*** string as described in the log
formats
<https://httpd.apache.org/docs/current/mod/mod_log_config.html#formats>
section. "

Either you use this way:
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
  CustomLog /home/user/logs/XXX.access_log combined

Or this way:
  CustomLog "/home/user/logs/XXX.access_log"  "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\""

You see, "combined" is just a nickname to the LogFormat, you can add
something like "my-site-special-log-format" and as long as you call it on
the CustomLog it will work, cause it's just an alias.

On Sat, Oct 6, 2018 at 8:51 PM @lbutlr <krem...@kreme.com> wrote:

> On 03 Oct 2018, at 17:11, @lbutlr <krem...@kreme.com> wrote:
> > It’ been over 4 hours now (almost 5) and the site is still responding
> perfectly.
>
> Well, I am more confused. I changed the log from common to debug and the
> site has been fine for days now.
>
> -  CustomLog /home/user/logs/XXX.access_log combined
> +  CustomLog /home/user/logs/XXX.access_log debug
>
> This was a mistake, as it simply logs “debug” now, so the logs are
> useless, but the site is up.
>
> In https.conf:
>  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
> combined
>
> ¯\_(ツ)_/¯
>
> --
> ALL WORK AND NO PLAY MAKES BART A DULL BOY ALL WORK AND NO PLAY MAKES
> BART A DULL BOY ALL WORK AND NO PLAY MAKES BART A DULL BOY Bart
> chalkboard Ep. 1F07er}i\" \"%{User-Age
> nt}i\"” combined
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

-- 
[ ]'s

Filipe Cifali Stangler

Reply via email to