Forum Discussion
jonhd_205628
Jun 11, 2015Nimbostratus
Classes / Data Groups searching
This is on LTMs, v11.3...
Client URLs are of two possible forms:
http://anyplace.com/streamX and http://anyplace.com/hls/streamX/playlist.m3u8
I've created a Data Group "streams" - the "String" v...
- Jun 12, 2015
Rather than using scan, is it not less resource-hungry to do something like:
it seems you are right.
scan root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux ltm rule qux { timing on when HTTP_REQUEST { scan [HTTP::path] {/hls/%[^/]/playlist.m3u8} stream } } root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) show ltm rule qux raw (raw) --------------------------------- Ltm::Rule Event: qux:HTTP_REQUEST --------------------------------- Priority 500 Executions Total 500 Failures 0 Aborts 0 CPU Cycles on Executing Average 31477 Maximum 108708 Minimum 26020 getfield root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux ltm rule qux { timing on when HTTP_REQUEST { set test [getfield [HTTP::path] "/" 3] } } root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) show ltm rule qux raw (raw) --------------------------------- Ltm::Rule Event: qux:HTTP_REQUEST --------------------------------- Priority 500 Executions Total 500 Failures 0 Aborts 0 CPU Cycles on Executing Average 26278 Maximum 104980 Minimum 22000
nitass_89166
Jun 12, 2015Noctilucent
Rather than using scan, is it not less resource-hungry to do something like:
it seems you are right.
scan
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
timing on
when HTTP_REQUEST {
scan [HTTP::path] {/hls/%[^/]/playlist.m3u8} stream
}
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) show ltm rule qux raw
(raw)
---------------------------------
Ltm::Rule Event: qux:HTTP_REQUEST
---------------------------------
Priority 500
Executions
Total 500
Failures 0
Aborts 0
CPU Cycles on Executing
Average 31477
Maximum 108708
Minimum 26020
getfield
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
timing on
when HTTP_REQUEST {
set test [getfield [HTTP::path] "/" 3]
}
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) show ltm rule qux raw
(raw)
---------------------------------
Ltm::Rule Event: qux:HTTP_REQUEST
---------------------------------
Priority 500
Executions
Total 500
Failures 0
Aborts 0
CPU Cycles on Executing
Average 26278
Maximum 104980
Minimum 22000
- jonhd_205628Jun 12, 2015NimbostratusWow nitass - thanks for the comprehensive evidence. Your help is much appreciated. Jon
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