VMware Cloud Community
usmabison
VMware Employee
VMware Employee

Set up syslog for vcsa using powercli

Greetings Folks!

I cant seem to find any code for configuring the vcsa to send logs to a remote syslog server. Found plenty for sending esxi logs to an external syslog. Couldn't find it for VCSA. Am I missing something? It is configured through the VAMI (interactively). Looking for programmatic configuration ...

VCSA Version 7U2

Labels (2)
Reply
0 Kudos
3 Replies
virtualinca
Enthusiast
Enthusiast

Hi,

in my lab I was able to change it remote syslog IP in following VCSA config file:

/etc/vmware-syslog/syslog.conf

and afterwards, needed to restart rsyslog:

systemctl restart rsyslog

I am not quite sure for Powershell but try looking into something like "sed" if you're looking to replace/update lines with BASH script.

However, I don't know if that's supported, so it would be better to ask support before making changes in a production environment.

Senior Engineer HCI@DellEMC | vExpert ️ | VCP-DCV | vSAN Specialist | VxRail and VMware Data Center Virtualisation Implementor | VxRail and VMware Data Center Virtualisation Administrator | Owner of virtualinca.com |
usmabison
VMware Employee
VMware Employee

Thank you  leka85 ...

Good info!

I saw that config file, and will move in that direction if there is no API solution ...

Someday ... programmability will complement our UX (and our UIs) ... meaning every UI setting has an API complement ... or maybe it does, and I just haven't found it (yet) -- sometimes these things are buried in the SDKs ...

I appreciate your help!

 

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

Tried searching here? https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/bd-p/2805


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos