VMware Cloud Community
VCPGuru
Contributor
Contributor
Jump to solution

kickstart syslog

I would like to integrate in my %post script my syslog server.

I want that my esx host has under /etc/syslog.conf the following entry:

. @192.168.1.1

how could i do that? any help would be appreciated!

Best Regards Simon Ciglia
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
cheeko
Expert
Expert
Jump to solution

Put something like this in your Post-Script

  1. Log to central syslog server

esxcfg-firewall -o 514,udp,out,syslog

echo "" >>/etc/syslog.conf

echo "# Send everything to central syslog server" >>/etc/syslog.conf

echo ". @192.168.1.1" >>/etc/syslog.conf

service syslog restart

View solution in original post

0 Kudos
2 Replies
cheeko
Expert
Expert
Jump to solution

Put something like this in your Post-Script

  1. Log to central syslog server

esxcfg-firewall -o 514,udp,out,syslog

echo "" >>/etc/syslog.conf

echo "# Send everything to central syslog server" >>/etc/syslog.conf

echo ". @192.168.1.1" >>/etc/syslog.conf

service syslog restart

0 Kudos
VCPGuru
Contributor
Contributor
Jump to solution

hey cheeko, you are my hero! you should been nominated for a vExpert!

thank you

Best Regards Simon Ciglia
0 Kudos