Forum Discussion
Write an LTM log message
Greetings.
I'd like to do the following.
LTM
ltm = F5::IControl.new(ltm_name, username, password, ["LocalLB.VirtualServer"]).get_interfaces["LocalLB.VirtualServer"]
priority = 3
release_number = 12345
ltm.add_rule(["virtual_server"], [[{:rule_name => "Maintenance", :priority => priority}]])
ltm.log("local0", "Maintenance irule added to Vserver with priority {priority} for releaseL {release_number}")
I looked at iControl :: Log and nothing really stood out. Is there something out there that can do this?
2 Replies
iControl is designed to manage the control plane (configuration). The Log interface is used to configure and monitor the logging on the system and their isn't a way from iControl to do so. The only way I can think of to add an entry to the log file programmatically would be to write an iRule (which exists on the data plane) that looks for a given URL and then issues a log statement. Kind of a hassle though to do it.
- crosson_16669
Nimbostratus
Yea this wouldn't work. Thanks for replying Joe.
Recent Discussions
Related Content
* 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