Getting Data In

Is this the correct stanza and location to monitor specific files on a *nix server with a universal forwarder?

w0lverineNOP
Path Finder

I am trying to have my universal forwarder monitor a specific file or sets of files on a *nix server:
Would this be the correct stanza to place into my outputs.conf file location?: /opt/spplunkforwarder/etc/system/local

stanza:

[monitor:///var/log/xxxxx/*]

Source: http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Configureforwarderswithoutputs.confd

0 Karma
1 Solution

jbjerke_splunk
Splunk Employee
Splunk Employee

Hi w0lverineNOP

You configure the monitoring of files in inputs.conf . Outputs.conf defines where the forwarder should send the data it is capturing in inputs.conf.

Does that make sense?

The correct entry in inputs.conf would be something like this:

[monitor:///var/log/access.log]
disabled = false
sourcetype = access_combined

You can also use wildcards with the * symbol.

Full docs here:
http://docs.splunk.com/Documentation/Splunk/6.3.2/admin/inputsconf

Let me know how you get along.

j

View solution in original post

jbjerke_splunk
Splunk Employee
Splunk Employee

Hi w0lverineNOP

You configure the monitoring of files in inputs.conf . Outputs.conf defines where the forwarder should send the data it is capturing in inputs.conf.

Does that make sense?

The correct entry in inputs.conf would be something like this:

[monitor:///var/log/access.log]
disabled = false
sourcetype = access_combined

You can also use wildcards with the * symbol.

Full docs here:
http://docs.splunk.com/Documentation/Splunk/6.3.2/admin/inputsconf

Let me know how you get along.

j

renjith_nair
Legend

Monitoring configurations should be in your inputs conf. ie : /opt/spplunkforwarder/etc/system/local/inputs.conf

See here : http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Editinputs.conf

For wildcard : http://docs.splunk.com/Documentation/Splunk/6.1/Data/Specifyinputpathswithwildcards

---
What goes around comes around. If it helps, hit it with Karma 🙂
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...