<?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 split multiply case number in same field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306212#M163640</link>
    <description>&lt;P&gt;@steinroardahl, Try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourCurrentSearch&amp;gt;
| eval casenr=split(casenr," ")
| mvexpand casenr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the run anywhere example based on your sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval casenr="344411 344409 344407"
| eval casenr=split(casenr," ")
| mvexpand casenr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Also explore feasibility of use of &lt;CODE&gt;stats&lt;/CODE&gt; instead of &lt;CODE&gt;transsaction&lt;/CODE&gt; for query performance improvement.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 11:21:54 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-01-15T11:21:54Z</dc:date>
    <item>
      <title>How to split multiply case number in same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306211#M163639</link>
      <description>&lt;P&gt;Hi fellow splunkers!&lt;/P&gt;

&lt;P&gt;I have a transaction that return case number in several scenarios. That is working perfectly where event has one case number. My chalenge is a application delete bulk function. My query with regex is matcing case number, but is returning all bulk case number in same field.&lt;/P&gt;

&lt;P&gt;Query:&lt;BR /&gt;
 &lt;CODE&gt;... | transaction pid maxspan=1s startswith=eval(match(_raw,"Processing TicketMultiactionController")) endswith=eval(match(_raw,"Completed"))&lt;/CODE&gt;&lt;BR /&gt;
Output: &lt;BR /&gt;
 &lt;CODE&gt;jan 15 08:55:02 10.246.31.18 xx[11138]: Processing TicketMultiactionController#update (for 172.18.209.36 at 2018-01-15 08:55:02) [POST] Jan 15 08:55:02 10.246.31.18 xx[11138]: Parameters: {"multiaction_idbox"=&amp;gt;" **344411 344409 344407**", "scope"=&amp;gt;"", "multiaction_markasdeleted"=&amp;gt;"1", "multiaction_owner"=&amp;gt;"", "multiaction_parentticket"=&amp;gt;"", "multiaction_monitor"=&amp;gt;""}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Example:    casenr =    344411 344409 344407&lt;/P&gt;

&lt;P&gt;How can I change this to "split" this deleted number into one event each ?&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
SRD&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 08:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306211#M163639</guid>
      <dc:creator>steinroardahl</dc:creator>
      <dc:date>2018-01-15T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiply case number in same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306212#M163640</link>
      <description>&lt;P&gt;@steinroardahl, Try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourCurrentSearch&amp;gt;
| eval casenr=split(casenr," ")
| mvexpand casenr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the run anywhere example based on your sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval casenr="344411 344409 344407"
| eval casenr=split(casenr," ")
| mvexpand casenr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Also explore feasibility of use of &lt;CODE&gt;stats&lt;/CODE&gt; instead of &lt;CODE&gt;transsaction&lt;/CODE&gt; for query performance improvement.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306212#M163640</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-15T11:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiply case number in same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306213#M163641</link>
      <description>&lt;P&gt;hey you can try something like this as well&lt;/P&gt;

&lt;P&gt;Try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval casenr="344411 344409 344407" 
| makemv casenr 
| mvexpand casenr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to make use this in your current search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_base_Search&amp;gt;| makemv casenr | mvexpand casenr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to have a field called &lt;CODE&gt;casenr&lt;/CODE&gt; to use with &lt;CODE&gt;mvexpand&lt;/CODE&gt; in which this pattern of numbers are there.&lt;/P&gt;

&lt;P&gt;Let me know if this helps you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306213#M163641</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-15T12:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiply case number in same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306214#M163642</link>
      <description>&lt;P&gt;It`s work perfectly mayurr98 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 15:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multiply-case-number-in-same-field/m-p/306214#M163642</guid>
      <dc:creator>steinroardahl</dc:creator>
      <dc:date>2018-01-15T15:18:56Z</dc:date>
    </item>
  </channel>
</rss>

