<?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 can i get two different events individually where both are separated by pipe &amp;quot;|&amp;quot; in the splunk data base. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283295#M85598</link>
    <description>&lt;P&gt;hi Sundaresh,&lt;BR /&gt;
i am so thank full for your suggestions. But they are not satisfying my case. please find the below scenario as an example.&lt;/P&gt;

&lt;P&gt;example: "regex1|regex2|regex3"&lt;BR /&gt;
i want to get first instance of regex1 or 2 or 3 or any two or all three(multiple events in the pattern) of the above pattern as they occurred in today's data.&lt;/P&gt;

&lt;P&gt;i am using "|stats value (event_pattern) as "unique event", first (_raw) as sample data|"&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:25:56 GMT</pubDate>
    <dc:creator>annamareddi</dc:creator>
    <dc:date>2020-09-29T10:25:56Z</dc:date>
    <item>
      <title>how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283291#M85594</link>
      <description>&lt;P&gt;i am using splunk to get the logs. we build a data base where 2 or 3 log events are separated by pipe "|" and tagged to single number in data base. while searching for those events for todays occurence, i am getting the first event only, as i am using first of RAW. How to get all the events tagged to that number, if they occur for today&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 12:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283291#M85594</guid>
      <dc:creator>annamareddi</dc:creator>
      <dc:date>2016-07-28T12:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283292#M85595</link>
      <description>&lt;P&gt;Can you provide a sample event and your current search query?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283292#M85595</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-07-28T14:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283293#M85596</link>
      <description>&lt;P&gt;Instead of &lt;CODE&gt;first(_raw)&lt;/CODE&gt;, try &lt;CODE&gt;values(_raw)&lt;/CODE&gt; or &lt;CODE&gt;list(_raw)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 21:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283293#M85596</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-28T21:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283294#M85597</link>
      <description>&lt;P&gt;example: "regex1|regex2|regex3"&lt;BR /&gt;
i want to get first instance of regex1 or 2 or 3 or all three(multiple events in the pattern) of the above pattern as they occurred in today's data.&lt;/P&gt;

&lt;P&gt;i am using "|stats value (event_pattern) as "unique event", first (_raw) as sample data|"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283294#M85597</guid>
      <dc:creator>annamareddi</dc:creator>
      <dc:date>2020-09-29T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283295#M85598</link>
      <description>&lt;P&gt;hi Sundaresh,&lt;BR /&gt;
i am so thank full for your suggestions. But they are not satisfying my case. please find the below scenario as an example.&lt;/P&gt;

&lt;P&gt;example: "regex1|regex2|regex3"&lt;BR /&gt;
i want to get first instance of regex1 or 2 or 3 or any two or all three(multiple events in the pattern) of the above pattern as they occurred in today's data.&lt;/P&gt;

&lt;P&gt;i am using "|stats value (event_pattern) as "unique event", first (_raw) as sample data|"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283295#M85598</guid>
      <dc:creator>annamareddi</dc:creator>
      <dc:date>2020-09-29T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283296#M85599</link>
      <description>&lt;P&gt;Have you look tried looking into the split command? &lt;/P&gt;

&lt;P&gt;index=your_index sourcetype=your_sourcetype | eval regexes = split(_raw, "|") | eval regex1=mvindex(regexes,0)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283296#M85599</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2020-09-29T10:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get two different events individually where both are separated by pipe "|" in the splunk data base.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283297#M85600</link>
      <description>&lt;P&gt;thank you Ryanoconnor. its working&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 04:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-get-two-different-events-individually-where-both-are/m-p/283297#M85600</guid>
      <dc:creator>annamareddi</dc:creator>
      <dc:date>2016-08-03T04:20:39Z</dc:date>
    </item>
  </channel>
</rss>

