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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...