Forum Discussion
adam_webb
Nimbostratus
Mar 20, 2023Can I write a key-value pair to a datagroup from an iRule?
Can I write a key-value pair to a datagroup from an iRule? They key and value will never change, though there will be more and more k/v pairs added over time, or maybe even removed. But for the purpo...
JRahm
Admin
Mar 21, 2023adam_webb, Three options off the top of my head...though 1. comes with a "just because you can doesn't mean you should" warning label. 2. is probably the best path.
- Call the iControl REST API from a sideband connection
- Use ISTATS::set to push the key/value to an iCall script. The key would be set as part of the iStats key (it's a little complex to grok) and the value would just be the value. Example in this article I wrote on invalidating WA cache.
- Push an entry to a local log file (like local0. that goes to /var/log/ltm) and create an alert in user_alert.conf that an iCall trigger can capture and act on. Example on an APM threshold crossing.
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
