<?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: Help with json field with backslash separated values? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642982#M109583</link>
    <description>&lt;P&gt;... and finally I found it.&lt;/P&gt;&lt;P&gt;I can't explain why, but if I replace the \n with any random character, the do the split it's works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;...| rename "extensionAttribute.value" AS value&lt;BR /&gt;| search value="*" AND NOT value="No Base*"&lt;BR /&gt;| eval value=replace(value,"\\n",";")&lt;BR /&gt;| makemv delim=";" value&lt;BR /&gt;| mvexpand value&lt;BR /&gt;| table value&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 07:49:25 GMT</pubDate>
    <dc:creator>norbertt911</dc:creator>
    <dc:date>2023-05-11T07:49:25Z</dc:date>
    <item>
      <title>How to split json field with backslash separated values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642809#M109568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a json field where multiple values listed separated by backslash in raw (space in list view) like this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;audit_retention_configure\nos_airdrop_disable......\nsystem_settings_wifi_menu_enable\n&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In list view the extraction looks ok, but the whole list shown as a single value. I would like to split it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I did this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Mysearch&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rename "extensionAttribute.value" AS value
| search value="*" AND NOT value="No Base*"
| eval values=split(value,"X")
| mvexpand values
| table values&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If i set X="\" (unbalanced quotes), or "\\", or " " (space), there is no change in the result, if I set forexample "_", it will split the field by _ like a charm...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Please advise what should I do for&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;audit_retention_configure&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;nos_airdrop_disable&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;nsystem_settings_wifi_menu_enable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;result.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642809#M109568</guid>
      <dc:creator>norbertt911</dc:creator>
      <dc:date>2023-05-11T12:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: json field with backslash separated values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642815#M109569</link>
      <description>&lt;P&gt;Try:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| makemv delim="\" value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Makemv" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Makemv&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 12:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642815#M109569</guid>
      <dc:creator>enzomialich</dc:creator>
      <dc:date>2023-05-10T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: json field with backslash separated values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642981#M109582</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;first of all I just realised that the separator is not just a backslash, but "\n" - new line.&lt;/P&gt;&lt;P&gt;anyway my results are same like with split. makemv do the job too with any delimiter except the \n (\\n,\\\\n or any variation).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642981#M109582</guid>
      <dc:creator>norbertt911</dc:creator>
      <dc:date>2023-05-11T07:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with json field with backslash separated values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642982#M109583</link>
      <description>&lt;P&gt;... and finally I found it.&lt;/P&gt;&lt;P&gt;I can't explain why, but if I replace the \n with any random character, the do the split it's works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;...| rename "extensionAttribute.value" AS value&lt;BR /&gt;| search value="*" AND NOT value="No Base*"&lt;BR /&gt;| eval value=replace(value,"\\n",";")&lt;BR /&gt;| makemv delim=";" value&lt;BR /&gt;| mvexpand value&lt;BR /&gt;| table value&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-json-field-with-backslash-separated-values/m-p/642982#M109583</guid>
      <dc:creator>norbertt911</dc:creator>
      <dc:date>2023-05-11T07:49:25Z</dc:date>
    </item>
  </channel>
</rss>

