Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Rahul_More
Cirrus
Cirrus

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 2

Andrew-F5
F5 Employee
F5 Employee

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

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?