<?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: Pre-processing and save data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/668205#M112004</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262185"&gt;@cross521&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes the Use Case you describe it's possible and easy to create.&lt;/P&gt;&lt;P&gt;I suppose that you already ingested data and stored them in an index using a sourcetype (item 1).&lt;/P&gt;&lt;P&gt;I suppose also that you already extracted fields associated&amp;nbsp; to that sourcetype (item 2), if not please share a sample of your logs.&lt;/P&gt;&lt;P&gt;For the item 3, I need to know how to identify failures, in the following example I use the rule that if there's a failure, "status" field has the value "failure", and you have to define the fields to add in the results&lt;/P&gt;&lt;P&gt;A the end, you can download the csv from the GUI or use the outputcsv command (at the end of the search) that saves the csv in $SPLUNK_HOME/var/run/splunk/csv, it isn't possible to use a different location for te saving folder, if you want a different one, you have to create a custom script to move this file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index status =failure
| table _time host field1 field2
| outputcsv your_csv.cv&lt;/LI-CODE&gt;&lt;P&gt;if there are different conditions you can modify my search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 07:27:19 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-11-10T07:27:19Z</dc:date>
    <item>
      <title>Pre-processing and save data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/667435#M111931</link>
      <description>&lt;P&gt;I want to deal with big data uising Splunk.&lt;/P&gt;&lt;P&gt;To reduce time for searching data, I want to select specific data from original data, pre-process it, and save the output data as csv format. Also I want to make dashboard using out data.&lt;/P&gt;&lt;P&gt;Please let me know about example of query or helpful article.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 23:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/667435#M111931</guid>
      <dc:creator>cross521</dc:creator>
      <dc:date>2023-11-05T23:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-processing and save data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/667447#M111933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262185"&gt;@cross521&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;your question id very vague.&lt;/P&gt;&lt;P&gt;Anyway, in general you have to index data in Splunk to analyze and use them.&lt;/P&gt;&lt;P&gt;The steps to do this are (in general) these:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;analyze data, finding the relevant ones (out of Splunk),&lt;/LI&gt;&lt;LI&gt;ingest them using the Splunk features (for more infos see&amp;nbsp;&lt;A href="https://lantern.splunk.com/Splunk_Platform/Getting_Started/Getting_data_into_Enterprise" target="_blank"&gt;https://lantern.splunk.com/Splunk_Platform/Getting_Started/Getting_data_into_Enterprise&lt;/A&gt;),&lt;/LI&gt;&lt;LI&gt;so you can search and use them.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To save the search results in csv forma theres the outputcsv command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.1/SearchReference/Outputcsv" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.1/SearchReference/Outputcsv&lt;/A&gt;), but anyway you have to index data in Splunk.&lt;/P&gt;&lt;P&gt;If you want to pre-process them, you have to use a script (done in the language you like) to prepare data before ingestion but I'am not an expert in scripting and this isn't a Splunk issue so I cannot help you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 06:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/667447#M111933</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-06T06:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-processing and save data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/668184#M112001</link>
      <description>&lt;P&gt;Thank you for answer.&amp;nbsp;&lt;BR /&gt;Here is an example where I would like to process data:&lt;BR /&gt;1. There are 3 years of data accumulated every 2 seconds.&lt;BR /&gt;2. The value of a particular point is always 0 and only becomes 1 or more when a failure occurs.&lt;BR /&gt;3. I would like to retrieve the records of any failures over a period of 3 years, i.e. spikes in the data, and save them as csv format.&lt;/P&gt;&lt;P&gt;Can you help me one more time?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 00:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/668184#M112001</guid>
      <dc:creator>cross521</dc:creator>
      <dc:date>2023-11-10T00:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-processing and save data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/668205#M112004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262185"&gt;@cross521&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes the Use Case you describe it's possible and easy to create.&lt;/P&gt;&lt;P&gt;I suppose that you already ingested data and stored them in an index using a sourcetype (item 1).&lt;/P&gt;&lt;P&gt;I suppose also that you already extracted fields associated&amp;nbsp; to that sourcetype (item 2), if not please share a sample of your logs.&lt;/P&gt;&lt;P&gt;For the item 3, I need to know how to identify failures, in the following example I use the rule that if there's a failure, "status" field has the value "failure", and you have to define the fields to add in the results&lt;/P&gt;&lt;P&gt;A the end, you can download the csv from the GUI or use the outputcsv command (at the end of the search) that saves the csv in $SPLUNK_HOME/var/run/splunk/csv, it isn't possible to use a different location for te saving folder, if you want a different one, you have to create a custom script to move this file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index status =failure
| table _time host field1 field2
| outputcsv your_csv.cv&lt;/LI-CODE&gt;&lt;P&gt;if there are different conditions you can modify my search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 07:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pre-processing-and-save-data/m-p/668205#M112004</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-10T07:27:19Z</dc:date>
    </item>
  </channel>
</rss>

