<?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: Add data to Splunk from a form in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98245#M20501</link>
    <description>&lt;P&gt;outputlookup &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt; Thx&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2013 07:58:23 GMT</pubDate>
    <dc:creator>timmalos</dc:creator>
    <dc:date>2013-07-18T07:58:23Z</dc:date>
    <item>
      <title>Add data to Splunk from a form</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98242#M20498</link>
      <description>&lt;P&gt;Hi guys.&lt;BR /&gt;
With bpdbjobs from Netbackup i got a list of all my netbackup jobs yhich are completed.&lt;BR /&gt;
Some of then have a jobStatus &amp;gt; 1 means they are in error.&lt;BR /&gt;
But sometimes, there are other jobs later who corrige the problem. In my list in splunk i want only see jobs in error &lt;STRONG&gt;which are not solved yet&lt;/STRONG&gt;. Means there is no job with same caracteristic later having jobStatus=0. I do this with that search : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Netbackup" host=$host$  | fillnull 0 jobCopy| dedup Client Policy Schedule Stream jobCopy sortby -_time|dedup jobId sortby -_time  | search jobStatus&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With that i can list errors still in error. &lt;STRONG&gt;But&lt;/STRONG&gt; (I come to the point) sometimes the problem is solved by an operator and i want to delete the line from the list. I want to create a form where i put a jobId and this jobId should &lt;STRONG&gt;never&lt;/STRONG&gt; appear in my list anymore. As i dont want to delete lines from indexes, i would add a line with same jobId but with more recent timestamp and jobStatus=0 (So that my search will not return it). Without write a file that Splunk index but directly by a form (Or other if you have an idea)&lt;BR /&gt;
How can i do that?&lt;/P&gt;

&lt;P&gt;Thx a lot for those who read this, sorry for my english and thx a lot for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:46:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98242#M20498</guid>
      <dc:creator>timmalos</dc:creator>
      <dc:date>2013-07-17T14:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add data to Splunk from a form</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98243#M20499</link>
      <description>&lt;P&gt;Create a list of the jobs that should &lt;STRONG&gt;not&lt;/STRONG&gt; be shown in the report. Make it a CSV file, perhaps like this&lt;/P&gt;

&lt;P&gt;resolvedJobs.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;jobId,jobStatus,dateTimeResolved,currentState
12113,0,2013-07-13 14:25,resolved
17116,0,2013-07-14 11:33,resolved
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc. Load this into Splunk as a lookup table. (&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Tutorial/Usefieldlookups"&gt;Lookup tutorial&lt;/A&gt;) When you create the lookup, set a default value of "unresolved". In the example below, I have called the lookup &lt;CODE&gt;jobLookup&lt;/CODE&gt;. Now run this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Netbackup" host=$host$  
| fillnull 0 jobCopy
| dedup Client Policy Schedule Stream jobCopy sortby -_time|dedup jobId sortby -_time  
| search jobStatus&amp;gt;1
| lookup jobLookup jobId OUTPUT currentStatus
| where currentStatus = "unresolved"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are lots of other interesting things that you can do with lookups. But this is one good application.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 21:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98243#M20499</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-07-17T21:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add data to Splunk from a form</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98244#M20500</link>
      <description>&lt;P&gt;Thats a good start thx ! How can i create the resolvedJobs.csv from a form? I mean i can do a search and pipe to an outputcsv but it will put the file in $SPLUNK_HOME/var/run/splunk i would this file to be in $MY_APP_DIR/lookups so that i can do the lookup function&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98244#M20500</guid>
      <dc:creator>timmalos</dc:creator>
      <dc:date>2020-09-28T14:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add data to Splunk from a form</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98245#M20501</link>
      <description>&lt;P&gt;outputlookup &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt; Thx&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 07:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-data-to-Splunk-from-a-form/m-p/98245#M20501</guid>
      <dc:creator>timmalos</dc:creator>
      <dc:date>2013-07-18T07:58:23Z</dc:date>
    </item>
  </channel>
</rss>

