<?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 How to use Spring XML Application to read data and retrieve search results from Splunk and convert it into CSV format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242522#M47018</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an application (Spring XML Application) which needs to read data from Splunk and convert it into CSV format.&lt;/P&gt;

&lt;P&gt;I am new to Splunk. Any guidance?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Phanendra&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 20:22:05 GMT</pubDate>
    <dc:creator>meduriphani</dc:creator>
    <dc:date>2017-01-18T20:22:05Z</dc:date>
    <item>
      <title>How to use Spring XML Application to read data and retrieve search results from Splunk and convert it into CSV format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242522#M47018</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an application (Spring XML Application) which needs to read data from Splunk and convert it into CSV format.&lt;/P&gt;

&lt;P&gt;I am new to Splunk. Any guidance?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Phanendra&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242522#M47018</guid>
      <dc:creator>meduriphani</dc:creator>
      <dc:date>2017-01-18T20:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Spring XML Application to read data and retrieve search results from Splunk and convert it into CSV format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242523#M47019</link>
      <description>&lt;P&gt;Hi Phanendra, &lt;/P&gt;

&lt;P&gt;There are two search commands you can use to convert Splunk search results into .csv. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;outputcsv&lt;/STRONG&gt;&lt;BR /&gt;
This command saves search results to the specified CSV file on the local search head in the $SPLUNK_HOME/var/run/splunk/csv directory. Updates to $SPLUNK_HOME/var/run/*.csv using the outputcsv command are not replicated across the cluster. &lt;BR /&gt;
For details, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Outputcsv" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Outputcsv&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;outputlookup&lt;/STRONG&gt;&lt;BR /&gt;
Writes search results to a static lookup table or KV store collection that you specify. &lt;BR /&gt;
For details, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Outputlookup" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Outputlookup&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;Hope this helps. Thanks! &lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242523#M47019</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2020-09-29T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Spring XML Application to read data and retrieve search results from Splunk and convert it into CSV format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242524#M47020</link>
      <description>&lt;P&gt;Hi Hunter,&lt;/P&gt;

&lt;P&gt;Thank you for your reply. Another application is keep on writing the data. My Spring XML application has to query for every 2 minutes and retrieve the data in CSV format from the last fetch record. It should not read the data which is already read. The output CSV file must be returned to my application, It should not be saved onto local search head.&lt;/P&gt;

&lt;P&gt;Right now, my application is throwing error the below error.&lt;/P&gt;

&lt;P&gt;[java.lang.Error - Unresolved compilation problems: &lt;BR /&gt;
    The import com.google cannot be resolved&lt;BR /&gt;
    The import com.google cannot be resolved&lt;BR /&gt;
    JsonReader cannot be resolved to a type&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Phanendra Meduri&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Spring-XML-Application-to-read-data-and-retrieve/m-p/242524#M47020</guid>
      <dc:creator>meduriphani</dc:creator>
      <dc:date>2017-01-19T14:50:14Z</dc:date>
    </item>
  </channel>
</rss>

