<?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 write a search for mapping fields based on dependency in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267827#M80578</link>
    <description>&lt;P&gt;Hi, thanks for sharing the link - this will help me.&lt;BR /&gt;
Yes, rmasuoka  definitely deserves an up vote.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2017 04:09:26 GMT</pubDate>
    <dc:creator>harshal_chakran</dc:creator>
    <dc:date>2017-02-03T04:09:26Z</dc:date>
    <item>
      <title>How to write a search for mapping fields based on dependency</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267823#M80574</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a sample dataset  as follows:&lt;/P&gt;

&lt;P&gt;PROCCESS_NAME  STATUS&lt;BR /&gt;
  p1        PASS&lt;BR /&gt;
  p2        PASS&lt;BR /&gt;
  p3        PASS&lt;BR /&gt;
  p4        PASS&lt;BR /&gt;
  p5        PASS&lt;BR /&gt;
  p6        PASS&lt;/P&gt;

&lt;P&gt;Their dependency relationship is as follows&lt;BR /&gt;
p1--&amp;gt;depends on --&amp;gt;p2 --&amp;gt;depends on--&amp;gt;p4 --&amp;gt;depends on --&amp;gt;p6&lt;BR /&gt;
p1--&amp;gt;depends on --&amp;gt; p3--&amp;gt;depends on--&amp;gt;p5&lt;/P&gt;

&lt;P&gt;How can I represent the same in table/chart in a dynamic way. Also if any PROCCESS_NAME  fails, its upper hierarchy show also set as FAIL.&lt;/P&gt;

&lt;P&gt;Means if p6 fails, then p6,p4,p2 and p1 should also be set as FAIL.&lt;/P&gt;

&lt;P&gt;Currently I am  able to show either predecessor or successor . i.e p2-p1 OR p2-p3 based on the lookup created:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Predecessor Successor &lt;BR /&gt;
p1     p2&lt;BR /&gt;
p1    p3&lt;BR /&gt;
p2    p4&lt;BR /&gt;
p4    p6&lt;BR /&gt;
p3    p5&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267823#M80574</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2017-02-02T07:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search for mapping fields based on dependency</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267824#M80575</link>
      <description>&lt;P&gt;What happens when P6 fails but p5 passes?&lt;BR /&gt;
And when p6 fails and p2 passes?&lt;/P&gt;

&lt;P&gt;Also how are these processes distinguished in each run say, if the data needs a correlation between multi runs, like below, how can once distinguish between p1 of run 1 from p1 of run2,3 or 4:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;run 1  - p1 pass;  p2 pass; p4 pass; p6 pass
run 2  - p1 pass;  p3 pass; p5 fails
run 3  - p1 pass;  p2 fails; p4 pass; p6 pass
run 4  - p1 pass;  p3 pass; p5 pass
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267824#M80575</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-02-02T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search for mapping fields based on dependency</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267825#M80576</link>
      <description>&lt;P&gt;if any lower hierarchy process fails, its upper one should be forced to set as FAIL, even if in individual run the upper one was PASS.&lt;/P&gt;

&lt;P&gt;Means if p6 fails and p5 not, then p6 predecessor p4 should be set as FAIL, which in turn set p2 as FAIL and finally P1 as FAIL.&lt;BR /&gt;
while p5 and p3 continues to be in PASS status.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267825#M80576</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2017-02-02T07:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search for mapping fields based on dependency</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267826#M80577</link>
      <description>&lt;P&gt;There are two solutions on the thread at this link, one of which is extensively documented and general in its application.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/170487/recursively-join-the-same-table.html"&gt;https://answers.splunk.com/answers/170487/recursively-join-the-same-table.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Be sure to upvote rmasuoka's post on that thread if it helps you with your problem.  Looks like he did a lot of work to create, document and explain a generally applicable solution.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 21:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267826#M80577</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-02T21:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search for mapping fields based on dependency</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267827#M80578</link>
      <description>&lt;P&gt;Hi, thanks for sharing the link - this will help me.&lt;BR /&gt;
Yes, rmasuoka  definitely deserves an up vote.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 04:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-for-mapping-fields-based-on-dependency/m-p/267827#M80578</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2017-02-03T04:09:26Z</dc:date>
    </item>
  </channel>
</rss>

