Getting Data In

Adding vCenter logs into Splunk

dbutch1976
Explorer

Hello,

We have most of our environment reporting into Splunk. This includes ESXi hosts, vCenter, Exchange 2007 and several other servers. Currently we only have the Windows Logs (System, Application, Security) reporting in. An example of our inputs.conf file on our vCenter is below:

[default]
host = vCenter

[WinEventLog:Application]
disabled=0
index=windows

[WinEventLog:Security]
disabled=0
index=windows

[WinEventLog:System]
disabled=0
index=windows

On this host I would like to start monitoring all the vCenter logs on this host and I believe I can accomplish this by simply monifying the inputs.conf file. The log files I want to monitor are all located here:

%ALLUSERSPROFILE%\VMware\VMware VirtualCenter\Logs\

These log file names appear to be non-standard and subject to change. Example: (vpxd-15979.log). Is it possible to monitor the entire folder for changes? I have searched for a KB article detailing how to set this up but have come up emtpy, I doubt that I am the first person to try this.

Thanks.

Tags (3)
0 Karma
1 Solution

farleymike
Explorer

I'm not familiar with vCenter logs, but to monitor all .log file in a directory you could add the following to the inputs.conf file:

[monitor://c:\path\to\vcenter\logs\*.log]
index = vcenter
sourcetype = vcenter

http://docs.splunk.com/Documentation/Splunk/5.0/Data/Editinputs.conf

You may also want to check out the new app for VMware. I got a quick demo last week by our Splunk rep and was really impressed.

View solution in original post

farleymike
Explorer

I'm not familiar with vCenter logs, but to monitor all .log file in a directory you could add the following to the inputs.conf file:

[monitor://c:\path\to\vcenter\logs\*.log]
index = vcenter
sourcetype = vcenter

http://docs.splunk.com/Documentation/Splunk/5.0/Data/Editinputs.conf

You may also want to check out the new app for VMware. I got a quick demo last week by our Splunk rep and was really impressed.

piebob
Splunk Employee
Splunk Employee

in the future, if an answer solves your problem, please accept it by checking the checkbox (i did it this time :))

0 Karma

dbutch1976
Explorer

That's got it working, thank you very much!

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...