jashicks_40657
Jul 01, 2011Nimbostratus
Maintain persistance based on unique user-agent header
Scenario I have many unique devices that identify themselves with a unique user-agent header. (each device has a different id that is provided in the user-agent header)
They submit multiple http requests in about a 5 minute window of time The source IP of the device could change during the window I need to maintain persistence based on that unique id we place in the user-agent header.
However each device has a different otherwise the example below would work for me.
when HTTP_REQUEST { if { [HTTP::header exists "X-Nokia-MSISDN"] } { if { [HTTP::header "X-Nokia-MSISDN"] != "" } { persist uie [HTTP::header "X-Nokia-MSISDN"] } else { persist source_addr } } else { persist source_addr } }