Forum Discussion

Rich_Bogle_1106's avatar
Rich_Bogle_1106
Icon for Nimbostratus rankNimbostratus
Aug 25, 2005

Log funtion output with spaces

I am using the following irule and as you can see the output has some text that would normally run togther. I have inserted the _ to help make it easier to read. I would ultimately prefer spaces. Does anyone know the syntax to do so?

 

 

when SERVER_CONNECTED {

 

log Client_[IP::client_addr]|[TCP::client_port]_connected_to_server_[IP::server_addr]|[TCP::server_port]_with_protocol_[IP::protocol]

 

}

 

 

 

Thanks

1 Reply

  • You can use quotes and embed variables in between them.

    when SERVER_CONNECTED {
    log "Client [IP::client_addr]|[TCP::client_port] connected to server [IP::server_addr]|[TCP::server_port] with protocol [IP::protocol]"
    }

    -Joe