Forum Discussion
Rosieodonell_16
Cirrus
Jun 30, 2015HSL Logging - Filtering it so that you only get the connection information
I have set up the following:
- Log Filter (emergency severity-source all)
- Log Destination (pointing to pool that contains splunk server)
- Log Publisher (points to splunk_db)
I setup the following iRule on the VS:
when CLIENT_ACCEPTED {
set hsl [HSL::open -proto TCP -pool splunk_9997]
}
when HTTP_REQUEST {
HSL::send $hsl "Request from external user - [IP::client_addr] to [HTTP::host][HTTP::uri]\n"
}
But when i look at the splunk server i am seeing log data for each png file they are requesting etc. I really just need the initial connection and that is it. Basically i want to see the following:
Request from external user - 172.16.148.2 to www.company.com/etc
Is this possible?
1 Reply
- Arie
Altostratus
You're facing two challenges:
- Each user may open several connections.
- A user may make multiple requests on the same connection.
You have a number of options to cut down on the log traffic:
- Log only connections (CLIENT_ACCEPTED). This would of course not log the requests. However, you could set a flag (semaphore) that you can then use it to log the first request in HTTP_REQUEST.
- Limit logging to requests without an extension and known pages.
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