<?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 create a table based if condition result? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-if-condition-result/m-p/164279#M46656</link>
    <description>&lt;P&gt;i wanna know how to display the result after specifying an if condition.&lt;BR /&gt;
the sample search is like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz | order="0000" | eval Order_status=if(order!=0,"found","not found") | .....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after this condition, if order=found, I need to display a table with few fields....please help me to solve this.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 06:29:26 GMT</pubDate>
    <dc:creator>Premkumarpalani</dc:creator>
    <dc:date>2015-03-05T06:29:26Z</dc:date>
    <item>
      <title>How to create a table based if condition result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-if-condition-result/m-p/164279#M46656</link>
      <description>&lt;P&gt;i wanna know how to display the result after specifying an if condition.&lt;BR /&gt;
the sample search is like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz | order="0000" | eval Order_status=if(order!=0,"found","not found") | .....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after this condition, if order=found, I need to display a table with few fields....please help me to solve this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 06:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-if-condition-result/m-p/164279#M46656</guid>
      <dc:creator>Premkumarpalani</dc:creator>
      <dc:date>2015-03-05T06:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based if condition result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-if-condition-result/m-p/164280#M46657</link>
      <description>&lt;P&gt;Hi  Premkumarpalanichamy,&lt;/P&gt;

&lt;P&gt;something like this works perfect for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal  | head 1 | eval order="0000" | eval Order_status=if(order!="0","found","not found") | table Order_status order | where Order_status="found"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;adapt it to your needs.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 06:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-if-condition-result/m-p/164280#M46657</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-05T06:50:42Z</dc:date>
    </item>
  </channel>
</rss>

