Forum Discussion
gpoverland
Nimbostratus
Sep 18, 2008Irule to log requests made to specific URL
ok,, trying to send logs to a syslog ng server to record what hosts are making requests to a specific URL. There are several extensions, so I have to send only the logs for a specific URI.. I'va compiled this from reading and looking around, but I usually come to the forum to provide a "sure this will work" or a "your out of your mind"... So please, take a look and let me know if I'm close.. hahahahaha thanks
when HTTP_REQUEST {
select the specific URI
if { [HTTP::uri] contains "\some\extension" }{
set the URL here
set url [HTTP::host][HTTP::uri]
set the client making the request here
set client [IP::client_addr]
}
log connection info
log 10.10.10.10 local0.info "Client: $client -> URL:$url"
}
8 Replies
- gpoverland
Nimbostratus
Cool thanks... - gpoverland
Nimbostratus
Ok,, I implemented this IRULE last night and it doesn't appear to be sending the logs to the syslog server. I can't tell if its a criteria issue or a syslog issue, I have to do some checking.. But I was wondering if there was something else I needed to do, a step I missed.. for example, did I need to configure the remote syslog somewhere else before I implemented this IRULE? - Nicolas_Menant
Employee
what is your bigip version ? - gpoverland
Nimbostratus
9.4.3 hahahahhaha dang... so what options do I have (besides upgrading)? - Nicolas_Menant
Employee
the only option remaining will be to send your irule logging on a local facility which is not used - gpoverland
Nimbostratus
Interesting.. Can't say that I've done that but let me see what it entails.. Thanks for the advice.. - Nicolas_Menant
Employee
Those links may help you: - gpoverland
Nimbostratus
ok,, got this configured but the logs are not being forwarded to the remote syslog... I used the bottom section of SQOL5527 any ideas?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects