<?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 How to extract a multi value field called &amp;quot;GroupName&amp;quot; from my JSON data via the Field extractor IFX? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599717#M208735</link>
    <description>&lt;P&gt;Hello,&amp;nbsp; Can someone pls guide how to extract a multi value field called "&lt;STRONG&gt;GroupName&lt;/STRONG&gt;" from my JSON data via the Field extractor IFX.&amp;nbsp; The different values are seperated by ",\" as you can see in the raw events.&amp;nbsp; By default it only extracts the 1st value - .&lt;BR /&gt;&lt;BR /&gt;Raw events:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"LogTimestamp": "Mon May 30 06:27:07 2022",[],"SAMLAttributes": "{\"FirstName\":[\"John\"],\"LastName\":[\"Doe\"],\"Email\":[\"John.doe@mycompany.com\"],\"DepartmentName\":[\"Group1-AVALON\"],\"GroupName\":[\"ZPA_Vendor_Azure_All\",\"Zscaler Proxy Users\",\"NewRelic_FullUser\",\"jira-users\",\"AWS-SSO-lstech-viewonly-users\",\"All Workers\"],\"userAccount\":[\"Full Time\"]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Regex generated by the IFX causes &lt;STRONG&gt;GroupName&lt;/STRONG&gt; to have only 1 value: "ZPA_Vendor_Azure_All".&lt;BR /&gt;&lt;BR /&gt;I want it to display the other values also such as : Zscaler Proxy Users , NewRelic_FullUser , jira-users , AWS-SSO-lstech-viewonly-users, All Workers&amp;nbsp; &amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;The end of the different values of GroupName field is just before the "userAccount" field.&lt;BR /&gt;&lt;BR /&gt;Hope i am clear&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 05:08:34 GMT</pubDate>
    <dc:creator>neerajs_81</dc:creator>
    <dc:date>2022-05-31T05:08:34Z</dc:date>
    <item>
      <title>How to extract a multi value field called "GroupName" from my JSON data via the Field extractor IFX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599717#M208735</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; Can someone pls guide how to extract a multi value field called "&lt;STRONG&gt;GroupName&lt;/STRONG&gt;" from my JSON data via the Field extractor IFX.&amp;nbsp; The different values are seperated by ",\" as you can see in the raw events.&amp;nbsp; By default it only extracts the 1st value - .&lt;BR /&gt;&lt;BR /&gt;Raw events:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"LogTimestamp": "Mon May 30 06:27:07 2022",[],"SAMLAttributes": "{\"FirstName\":[\"John\"],\"LastName\":[\"Doe\"],\"Email\":[\"John.doe@mycompany.com\"],\"DepartmentName\":[\"Group1-AVALON\"],\"GroupName\":[\"ZPA_Vendor_Azure_All\",\"Zscaler Proxy Users\",\"NewRelic_FullUser\",\"jira-users\",\"AWS-SSO-lstech-viewonly-users\",\"All Workers\"],\"userAccount\":[\"Full Time\"]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Regex generated by the IFX causes &lt;STRONG&gt;GroupName&lt;/STRONG&gt; to have only 1 value: "ZPA_Vendor_Azure_All".&lt;BR /&gt;&lt;BR /&gt;I want it to display the other values also such as : Zscaler Proxy Users , NewRelic_FullUser , jira-users , AWS-SSO-lstech-viewonly-users, All Workers&amp;nbsp; &amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;The end of the different values of GroupName field is just before the "userAccount" field.&lt;BR /&gt;&lt;BR /&gt;Hope i am clear&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 05:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599717#M208735</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-05-31T05:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting  JSON multi value fields via IFX field extractor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599773#M208755</link>
      <description>&lt;P&gt;If you really, really, really want to use regex to handle &amp;nbsp;this, you can extract the entire GroupName field as one string, then handle that string afterward, e.g.,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\\"GroupName\\":\[(?&amp;lt;GroupNames&amp;gt;[^\]]+)&lt;/LI-CODE&gt;&lt;P&gt;But &amp;nbsp;really, structured data is best extracted using Splunk's builtin functions. &amp;nbsp;If the complete body of raw event is in JSON, the source type should be set to a JSON type, for example. &amp;nbsp;If the JSON is just part of an unstructured message, use kv_mode=json (c.f., &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Automatickey-valuefieldextractionsatsearch-time#Configure_automatic_key-value_field_extraction" target="_blank" rel="noopener"&gt;Configure automatic key-value field extraction&lt;/A&gt;) in props.conf or&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath" target="_blank" rel="noopener"&gt;spath&lt;/A&gt;&amp;nbsp;in SPL.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 18:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599773#M208755</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-05-30T18:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting  JSON multi value fields via IFX field extractor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599792#M208762</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I have extracted t&lt;SPAN&gt;he entire GroupName field as one string for now.&amp;nbsp; Can you pls advise how to handle it further ?&amp;nbsp; I want it split further to show the different values and exclude characters like \" from the values.&lt;BR /&gt;&lt;BR /&gt;Currently it shows value as below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ZPA_Vendor_Azure_All\",\"Zscaler Proxy Users\",\"NewRelic_FullUser\",\"jira-users\",\"AWS-SSO-lstech-viewonly-users\",\"All Workers&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;How can i get it to show like this ?&amp;nbsp; Basically &lt;STRONG&gt;GroupName&lt;/STRONG&gt; will b a multi value field.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ZPA_Vendor_Azure_All
Zscaler Proxy Users
NewRelic_FullUser
jira-users
All Workers&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 05:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599792#M208762</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-05-31T05:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting  JSON multi value fields via IFX field extractor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599993#M208854</link>
      <description>&lt;P&gt;With the string value GroupNames - do not drop the outer quotation marks; they help simplify the next step. &amp;nbsp;(Alternatively, drop all of those escaped quotation marks.) &amp;nbsp;Say, you have a value like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\"ZPA_Vendor_Azure_All\",\"Zscaler Proxy Users\",\"NewRelic_FullUser\",\"jira-users\",\"AWS-SSO-lstech-viewonly-users\",\"All Workers\"&lt;/LI-CODE&gt;&lt;P&gt;the next filter would be to split them and some cleanup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval GroupName = split(replace(GroupNames, "\\\\\"", ""), ",")&lt;/LI-CODE&gt;&lt;P&gt;This particular method doesn't care whether the outer quotation marks are dropped or not. &amp;nbsp;But it is easier to troubleshoot if those marks are in place.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 00:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/599993#M208854</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-06-01T00:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting  JSON multi value fields via IFX field extractor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/600000#M208858</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 04:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-multi-value-field-called-quot-GroupName-quot/m-p/600000#M208858</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-06-01T04:46:18Z</dc:date>
    </item>
  </channel>
</rss>

