<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to index a file from file system? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82407#M17070</link>
    <description>&lt;P&gt;You could just use the CLI.  Here's the example.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Data/MonitorfilesanddirectoriesusingtheCLI#Example_1:_Monitor_files_in_a_directory"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Data/MonitorfilesanddirectoriesusingtheCLI#Example_1:_Monitor_files_in_a_directory&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What are you trying to do?  Once you add the file for monitoring you could then use the SDK to search the new data.&lt;/P&gt;

&lt;P&gt;For the Java SDK follow instructions on GitHub.  Generate the javadocs and look for the class com.splunk.MonitorInput. There are examples as well.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-sdk-java/blob/master/tests/com/splunk/InputTest.java"&gt;https://github.com/splunk/splunk-sdk-java/blob/master/tests/com/splunk/InputTest.java&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jun 2012 15:13:55 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2012-06-24T15:13:55Z</dc:date>
    <item>
      <title>how to index a file from file system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82406#M17069</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
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&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Hari&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2012 13:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82406#M17069</guid>
      <dc:creator>Hari5190</dc:creator>
      <dc:date>2012-06-24T13:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to index a file from file system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82407#M17070</link>
      <description>&lt;P&gt;You could just use the CLI.  Here's the example.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Data/MonitorfilesanddirectoriesusingtheCLI#Example_1:_Monitor_files_in_a_directory"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Data/MonitorfilesanddirectoriesusingtheCLI#Example_1:_Monitor_files_in_a_directory&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What are you trying to do?  Once you add the file for monitoring you could then use the SDK to search the new data.&lt;/P&gt;

&lt;P&gt;For the Java SDK follow instructions on GitHub.  Generate the javadocs and look for the class com.splunk.MonitorInput. There are examples as well.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-sdk-java/blob/master/tests/com/splunk/InputTest.java"&gt;https://github.com/splunk/splunk-sdk-java/blob/master/tests/com/splunk/InputTest.java&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2012 15:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82407#M17070</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-06-24T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to index a file from file system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82408#M17071</link>
      <description>&lt;P&gt;Also, if you're simply new to Splunk, first of all make sure that you know the basics: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Tutorial/WelcometotheSplunkTutorial"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Tutorial/WelcometotheSplunkTutorial&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 05:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-index-a-file-from-file-system/m-p/82408#M17071</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-12T05:10:07Z</dc:date>
    </item>
  </channel>
</rss>

