Getting Data In

Monitor logs on a Unix Server from Windows Machine

jerry_john
Engager

I installed Splunk on my Windows XP machine and I'm trying to setup the "Source" to "Monitor a file or directory" which is on a Unix box. How do I accomplish this or does Splunk have to be installed on the Unix box? When trying to put the full path I get an error that says "Encountered the following error while trying to save: In handler 'monitor': Path must be absolute"

Tags (2)

southeringtonp
Motivator

There are quite a few ways to do this.

Installing a Splunk Light Forwarder on the Unix box is the cleanest answer in many respects.

Another option would be configure syslogd on the unix machine to forward events to a remote server, and then either install a syslog daemon such as Kiwi Syslog or have Splunk listen on the syslog port. If Splunk listens directly, you will lose events that occur while Splunk is not running.

This isn't good for things like web server logs that are written directly to files, but works well for data sent via syslog.

A third approach is to retrieve the files locally via ftp (or preferably SSH-based file copy), to a path that Splunk is indexing. If using scp/sftp, then you can generate a private key to allow authentication without a password. You can schedule the retrieval either as a separate Windows Task Scheduler job, or set up a scripted input in Splunk.

muebel
SplunkTrust
SplunkTrust

Installing Splunk on the Unix box is probably the best bet. I believe you would be able to use syslog to forward various events in some method, but it would probably be less work just to set up the Unix box as a Splunk forwarder.

0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...