Forum Discussion
Basil_Parsley_1
Nimbostratus
Apr 11, 2016iRule - findstr - find and pull data from HTML payload to Splunk
Guys,
I have been tasked with sorting a HSL log sent from an LTM to Splunk ; basically is a website which customers log in putting in a username / password, subsequent orders require the input o...
Josiah_39459
Apr 11, 2016Historic F5 Account
So it sounds like you only want to send the log when "CustomerID" is actually found. So do your
set resp_custID [findstr [HTTP::payload] "CustomerID" first and then check if { $resp_custID ne "" } { before logging.Josiah_39459
Apr 11, 2016Historic F5 Account
Also if you want to be really elegant and don't want to check EVERY http payload, you can set a flag in HTTP_REQUEST when the appropriate uri is requested and unset it when it's not and then only send your logs if that flag is set.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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