<?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 values within a field that are not separated by any characters? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410448#M118425</link>
    <description>&lt;P&gt;HI @pstamati,&lt;/P&gt;

&lt;P&gt;You can use rex command.  Can you please try the following search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="\"RTS851\"\"SASPROD\"\"SYS\"\"JYCX\"\"DEVUSER\"\"SCFL\"\"SYSTEM\"\"CZ\"\"VATUSER\"\"CYBERDBUSER\"\"ILOG666\"" | rex field=_raw max_match=10  "\"(?&amp;lt;Values&amp;gt;.*?)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Jun 2018 17:22:34 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2018-06-26T17:22:34Z</dc:date>
    <item>
      <title>How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410447#M118424</link>
      <description>&lt;P&gt;Hello everyone, I have this field with values that are retrieved withing "" but not separated by any character, and I was wondering how to represent those into different lines using the Split function, but I'm not able to split these are I'm not able to identify what character to use in the split function. &lt;BR /&gt;
See an example of the field value:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"RTS851""SASPROD""SYS""JYCX""DEVUSER""SCFL""SYSTEM""CZ""VATUSER""CYBERDBUSER""ILOG666"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried using &lt;CODE&gt;|eval Values=split(Value,"")&lt;/CODE&gt; but didn't work.&lt;/P&gt;

&lt;P&gt;See results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"
R
T
S
8
5
1
"
"
S
A
S
P
R
O
D
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea ?&lt;BR /&gt;
Thanks in advance for any help you can provide.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410447#M118424</guid>
      <dc:creator>pstamati</dc:creator>
      <dc:date>2018-06-26T16:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410448#M118425</link>
      <description>&lt;P&gt;HI @pstamati,&lt;/P&gt;

&lt;P&gt;You can use rex command.  Can you please try the following search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="\"RTS851\"\"SASPROD\"\"SYS\"\"JYCX\"\"DEVUSER\"\"SCFL\"\"SYSTEM\"\"CZ\"\"VATUSER\"\"CYBERDBUSER\"\"ILOG666\"" | rex field=_raw max_match=10  "\"(?&amp;lt;Values&amp;gt;.*?)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410448#M118425</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-06-26T17:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410449#M118426</link>
      <description>&lt;P&gt;you have 4 single quotes or 2 double quotes. what happens if you try this enclosing them like this |eval Values=split(Value,"""")&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410449#M118426</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-06-26T17:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410450#M118427</link>
      <description>&lt;P&gt;another way is to use regex,that would surely work out&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410450#M118427</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-06-26T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410451#M118428</link>
      <description>&lt;P&gt;Just have in mind \"RTS851\"\"SASPROD\"\"SYS\"\"JYCX\"\"DEVUSER\"\"SCFL\"\"SYSTEM\"\"CZ\"\"VATUSER\"\"CYBERDBUSER\"\"ILOG666\" is just the value of the filed I want to split into multiple values. the same field will have different values.&lt;/P&gt;

&lt;P&gt;To explain this better, the field contains multiple "Usernames". Each line will have different Usernames all together in the same field value. I want to splint the field having 1 line per Username, so instead of having &lt;/P&gt;

&lt;P&gt;"RTS851""SASPROD""SYS""JYCX""DEVUSER"&lt;/P&gt;

&lt;P&gt;I get something like&lt;BR /&gt;
"RTS851"&lt;BR /&gt;
"SASPROD"&lt;BR /&gt;
"SYS"&lt;BR /&gt;
"JYCX"&lt;BR /&gt;
"DEVUSER"&lt;/P&gt;

&lt;P&gt;Is it clearer?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410451#M118428</guid>
      <dc:creator>pstamati</dc:creator>
      <dc:date>2018-06-26T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410452#M118429</link>
      <description>&lt;P&gt;Let’s say the field name is abc&lt;/P&gt;

&lt;P&gt;| makemv abc delims=‘“\”’&lt;BR /&gt;
| mvexpand abc&lt;BR /&gt;
| rex mode=sed “s/“|\//g”&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410452#M118429</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-26T17:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410453#M118430</link>
      <description>&lt;P&gt;These are 4 different records, where the value of the field Output contains a list of usernames as follows:&lt;/P&gt;

&lt;P&gt;"RTS851""SASPROD""SYS""JYCX""DEVUSER""SCFL""SYSTEM""CZ""VATUSER""CYBERDBUSER""ILOG666"&lt;BR /&gt;
"SYSTEM""LBS$MAUGAETE""LBS$AORELLAN""SYS"&lt;BR /&gt;
"SYSTEM""LBS$MAUGAETE""LBS$AORELLAN""SYS""ESTADISTICA"&lt;BR /&gt;
"LBS$ACISTERN""SYS""ADMINDBA""LBS$AORELLAN""LBS$ROLGONZA""LBS$PRANA""SYSTEM"&lt;/P&gt;

&lt;P&gt;What I want, is to be able to have the value of each field "Output" like it follows:&lt;BR /&gt;
RTS851&lt;BR /&gt;
SASPROD&lt;BR /&gt;
SYS&lt;BR /&gt;
JYCX&lt;BR /&gt;
DEVUSER&lt;BR /&gt;
SCFL&lt;BR /&gt;
SYSTEM&lt;BR /&gt;
CZ&lt;BR /&gt;
VATUSER&lt;BR /&gt;
CYBERDBUSER&lt;BR /&gt;
ILOG666&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 18:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410453#M118430</guid>
      <dc:creator>pstamati</dc:creator>
      <dc:date>2018-06-26T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410454#M118431</link>
      <description>&lt;P&gt;| rex mode=sed “s/“|\//g” this part give an error, that I cannot solve. Any idea?&lt;BR /&gt;
Error in 'SearchParser': Missing a search command before '\'. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 20:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410454#M118431</guid>
      <dc:creator>pstamati</dc:creator>
      <dc:date>2018-06-26T20:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410455#M118432</link>
      <description>&lt;P&gt;It worked. I got confused with the |makeresults, command but once I removed that and the first eval, it worked pretty good. Many thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 20:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410455#M118432</guid>
      <dc:creator>pstamati</dc:creator>
      <dc:date>2018-06-26T20:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410456#M118433</link>
      <description>&lt;P&gt;Oh it’s because I didn’t surround the sed expression with single quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 21:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410456#M118433</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-26T21:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to split values within a field that are not separated by any characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410457#M118434</link>
      <description>&lt;P&gt;Alternative without regex would be to replace the &lt;CODE&gt;""&lt;/CODE&gt; by a single character using the &lt;CODE&gt;replace()&lt;/CODE&gt; function. Then split by that character.&lt;/P&gt;

&lt;P&gt;For example replace double quotes by semi-colon (and trim of the quotes at start and end) and then split by semi-colon:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="\"RTS851\"\"SASPROD\"\"SYS\"\"JYCX\"\"DEVUSER\"\"SCFL\"\"SYSTEM\"\"CZ\"\"VATUSER\"\"CYBERDBUSER\"\"ILOG666\""
| eval test = replace(_raw,"\"\"",";")
| eval test = replace(test,"\"","")
| eval test = split(test,";")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 07:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-values-within-a-field-that-are-not-separated-by-any/m-p/410457#M118434</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-27T07:16:24Z</dc:date>
    </item>
  </channel>
</rss>

