문제

I've been tasked with parsing Apache web log files to extract data into another format. The customer provided me with the format line which includes the directive "%{c}a".

While I can find a definition for "%a" (the remote IP address), I cannot find any reference as to what the bracketed part means.

Does anyone recognize it and let me know what it represents?

도움이 되었습니까?

해결책

From https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats:

%{c}a Underlying peer IP address of the connection (see the mod_remoteip module).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top