Forum Discussion

crosson_16669's avatar
crosson_16669
Icon for Nimbostratus rankNimbostratus
Jul 24, 2013

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?

 

  • 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.