<?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: I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391007#M113814</link>
    <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="indexsplunk" host=host* tag="Failure" "Transaction" ) OR (index="indexsplunk" host=host* tag="ABCD" "EFGH") 
| stats count(eval(tag=="Failure")) as fail_count count(eval(tag=="ABCD")) as adcd_count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Jul 2019 23:14:29 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-07-17T23:14:29Z</dc:date>
    <item>
      <title>I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391005#M113812</link>
      <description>&lt;P&gt;index="indexsplunk" host=host* tag="&lt;EM&gt;Failure&lt;/EM&gt;" "Transaction" | stats count as Total&lt;BR /&gt;
|append [search index="indexsplunk" host=host* tag="&lt;EM&gt;Failure&lt;/EM&gt;" "EFGH" | stats count as Total]&lt;/P&gt;

&lt;P&gt;Right now, output is displaying in 2 rows, since I append so one more row added for 2nd search. Please help me getting the data populated in one field and also suggest how to add the date while searching.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391005#M113812</guid>
      <dc:creator>krsuraj11</dc:creator>
      <dc:date>2019-07-17T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391006#M113813</link>
      <description>&lt;P&gt;Do the two rows have anything in common?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 16:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391006#M113813</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2019-07-17T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391007#M113814</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="indexsplunk" host=host* tag="Failure" "Transaction" ) OR (index="indexsplunk" host=host* tag="ABCD" "EFGH") 
| stats count(eval(tag=="Failure")) as fail_count count(eval(tag=="ABCD")) as adcd_count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2019 23:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391007#M113814</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-07-17T23:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391008#M113815</link>
      <description>&lt;P&gt;Yes, Index, Host and Tag are common, please help &lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 07:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391008#M113815</guid>
      <dc:creator>krsuraj11</dc:creator>
      <dc:date>2019-07-18T07:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391009#M113816</link>
      <description>&lt;P&gt;Hi, it gives me the 0 result, actually tag is common for both, can you please check again.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 07:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391009#M113816</guid>
      <dc:creator>krsuraj11</dc:creator>
      <dc:date>2019-07-18T07:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: I want to merge my data into single row, also I want to add the trendchart based on the date/time, please check below the more details.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391010#M113817</link>
      <description>&lt;P&gt;try and use this formula, here i use wild cards in eval &lt;CODE&gt;%Fail%&lt;/CODE&gt; you might not need.&lt;/P&gt;

&lt;P&gt;| makeresults count=1000&lt;BR /&gt;
| eval random_for_text = random()%2&lt;BR /&gt;
| eval text_to_search = if(random_for_text=="0","Failure","EFGH")&lt;BR /&gt;
| stats count(eval(like(text_to_search,"%Fail%"))) as fail_count count(eval(like(text_to_search, "%EF%"))) as efgh_count&lt;/P&gt;

&lt;P&gt;in your case itll be maybe something like this:&lt;BR /&gt;
    index="indexsplunk" host=host* tag="Failure" "Transaction"  ("Failure" OR "EFGH")&lt;BR /&gt;
    | stats count(eval(like(_raw,"Failure"))) as fail_count count(eval(like(_raw, "EFGH"))) as efgh_count&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-merge-my-data-into-single-row-also-I-want-to-add-the/m-p/391010#M113817</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-09-30T01:20:10Z</dc:date>
    </item>
  </channel>
</rss>

