Getting Data In

how to index a file from file system?

New Member

I am new to splunk..This might be a very silly question but please help me ..I have a file in file system which i want to index.What is the api in java sdk to load the file and index it?How can i know when the indexing has completed


Tags (1)
0 Karma

Splunk Employee
Splunk Employee

You could just use the CLI. Here's the example.

What are you trying to do? Once you add the file for monitoring you could then use the SDK to search the new data.

For the Java SDK follow instructions on GitHub. Generate the javadocs and look for the class com.splunk.MonitorInput. There are examples as well.

0 Karma


Also, if you're simply new to Splunk, first of all make sure that you know the basics:

0 Karma