<?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 Custom Search - Help needed. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109648#M28627</link>
    <description>&lt;P&gt;I have trap data coming onto my Splunk Server ... the data looks like this&lt;/P&gt;

&lt;P&gt;1.3.6.1.4.1.3279.1.1.8.1.35.2 = ObjectSyntax: simple=SimpleSyntax:  string=application_name&lt;/P&gt;

&lt;P&gt;my key is "1.3.6.1.4.1.3279.1.1.8.1.35.2" and my value is at the end "application_name"&lt;/P&gt;

&lt;P&gt;can some one help me with the search query here.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2013 12:55:25 GMT</pubDate>
    <dc:creator>nandipatisunil</dc:creator>
    <dc:date>2013-10-22T12:55:25Z</dc:date>
    <item>
      <title>Custom Search - Help needed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109648#M28627</link>
      <description>&lt;P&gt;I have trap data coming onto my Splunk Server ... the data looks like this&lt;/P&gt;

&lt;P&gt;1.3.6.1.4.1.3279.1.1.8.1.35.2 = ObjectSyntax: simple=SimpleSyntax:  string=application_name&lt;/P&gt;

&lt;P&gt;my key is "1.3.6.1.4.1.3279.1.1.8.1.35.2" and my value is at the end "application_name"&lt;/P&gt;

&lt;P&gt;can some one help me with the search query here.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2013 12:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109648#M28627</guid>
      <dc:creator>nandipatisunil</dc:creator>
      <dc:date>2013-10-22T12:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search - Help needed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109649#M28628</link>
      <description>&lt;P&gt;What are you searching for exactly?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109649#M28628</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-28T15:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search - Help needed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109650#M28629</link>
      <description>&lt;P&gt;I am trying to create custom key-value pairs ... my key is "1.3.6.1.4.1.3279.1.1.8.1.35.2" and my value is at the end "application_name".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109650#M28629</guid>
      <dc:creator>nandipatisunil</dc:creator>
      <dc:date>2013-10-28T15:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search - Help needed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109651#M28630</link>
      <description>&lt;P&gt;Assumption: Every event has the same data between the OID and the application_name.&lt;/P&gt;

&lt;P&gt;Use a transform. Perhaps something like this (based on an &lt;A href="http://answers.splunk.com/answers/75590/extracting-fields-field-name-field-value"&gt;answers entry&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;In props.conf do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetypehere]
REPORT-myoidextract = getmyoiddata
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in transforms.conf do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[getmyoiddata]
REGEX = (?.*)\s=\sObjectSyntax:\ssimple=SimpleSyntax:\s+string=(?.*)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See if that works (or muss with it some if it's not exact).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109651#M28630</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-10-28T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search - Help needed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109652#M28631</link>
      <description>&lt;P&gt;This did my job&lt;/P&gt;

&lt;P&gt;REGEX = \s1.3.6.1.4.1.3279.1.1.8.1.35.2\s=\sObjectSyntax:\s+simple=SimpleSyntax:\s+string=(?&lt;APPLICATIONNAME&gt;.*)&lt;/APPLICATIONNAME&gt;&lt;/P&gt;

&lt;P&gt;... but had to also mention the below part ... since it was writing the rest of the message also to the above one.&lt;/P&gt;

&lt;P&gt;\s+\s+\s1.3.6.1.4.1.3279.1.1.8.1.35.3\s=\sObjectSyntax:\s+simple=SimpleSyntax:\s+string=(?&lt;REST&gt;.*)&lt;/REST&gt;&lt;/P&gt;

&lt;P&gt;Thanks Mr. JTrucks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 01:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Help-needed/m-p/109652#M28631</guid>
      <dc:creator>nandipatisunil</dc:creator>
      <dc:date>2013-10-29T01:43:31Z</dc:date>
    </item>
  </channel>
</rss>

