Forum Discussion

Rahul_More's avatar
Oct 23, 2020

Is there a way to set logging profile to all virtual servers using iControl REST?

Hey Guys,

 

Multiple ASM policies are configured and assigned to virtual servers. New SIEM platform is activated whose logg profiles need to be set.

What would be the possible causes to the device? CPU high or any impact to device performance.

 

Provide recommendation with this.

2 Replies

  • == TMSH ==

    tmsh modify ltm virtual all security-log-profiles add { Your\ log\ profile }

    ◘ You *must* use backslash on all spaces in the security log profile name.

     

    == TMSH over REST ==

    curl -sk -u 'admin:admin' -H 'Content-Type: application/json' -X POST \

      -d '{"command": "run", "utilCmdArgs": "-c \"tmsh modify ltm virtual all security-log-profiles add { Log\\ all\\ requests\\ and\\ responses }\""}' \

      https://<mgmtIP>/mgmt/tm/util/bash | jq .

    ◘ You *must* use *double* backslash on all spaces in the security log profile name.

    • Rahul_More's avatar
      Rahul_More
      Icon for Cirrus rankCirrus

      Hi Andrew,

       

      Many thanks for your response :-)

       

      Actually there are two VIP configured for each application ,

      1st: -- Virtual server for 443 services

      2nd: -- Virtual server for redirection

       

      How I can apply this only to Virtual Servers which has HTTPs services?