[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

Logging HTTP request header information for specific IPs in a separate log file

Is it possible to have Apache log header information for a specific set of IP addresses (and not for others) in a separate log file?
0
yarongolan
Asked:
yarongolan
1 Solution
 
caterham_wwwCommented:
Are you thinking about the access log?

In your httpd.conf:
SetEnvIf Remote_Addr "^123\.0" iplog
CustomLog iplog.log combined env=iplog

Open in new window

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now