Forum Discussion

abi1980_184094's avatar
abi1980_184094
Icon for Nimbostratus rankNimbostratus
Apr 04, 2015

hi

can anyone tell me the syntax to chek for i rule logs in f5

 

i have configured lrule to log local but am not sure ont he syntax on how to check the logs

 

Please help

 

1 Reply

  • Are you asking how the log is formatted in /var/log/ltm? I created a very simple log rule to log text just to show how the log is formatted.

    The following sample rule was applied to an HTTP virtual:

    ltm rule logtest {
        when HTTP_REQUEST {
        log local0. "Test rule"
        }
    }
    

    When the virtual is hit and rule triggered, the following log message appears in /var/log/ltm:

    ltm 04-04 11:45:26 info lab-bigip1 tmm[15549]: Rule /Common/logtest : Test rule

    Does that cover your question or are you looking for something additional?