Splunk Search

how to extract data on hourly basis in Windows platform

pramodkumar
Path Finder

Hi Team,

My Scenario is to fetch data from my local directory(Windows OS) into Splunk on hourly basis, if the file is placed then Splunk had to identify the file and extract the data. And want to automate the process, please help me.

Thanks,
Pramod

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

create/edit a file called inputs.conf in c:\program files\splunk\etc\system\local

[monitor://c:\path\dir]
index=blah
sourcetype=blah

Any file that gets put into the directory will be automatically indexed, and continually monitored for new additions. If your files are updated, splunk will see that almost immediately and index the new events.

For more information, see the Getting Data In section of the manual.

Hope this helps,

Kristian

View solution in original post

kristian_kolb
Ultra Champion

create/edit a file called inputs.conf in c:\program files\splunk\etc\system\local

[monitor://c:\path\dir]
index=blah
sourcetype=blah

Any file that gets put into the directory will be automatically indexed, and continually monitored for new additions. If your files are updated, splunk will see that almost immediately and index the new events.

For more information, see the Getting Data In section of the manual.

Hope this helps,

Kristian

Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...