<?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: Dynamically Extract Fields at Search-Time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688091#M114608</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;EXTRACT&lt;/FONT&gt; props do not invoke a transform.&amp;nbsp; Use &lt;FONT face="courier new,courier"&gt;REPORT&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 00:23:37 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-05-21T00:23:37Z</dc:date>
    <item>
      <title>Dynamically Extract Fields at Search-Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688082#M114607</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to dynamically set some extractions to save myself time and effort from writing hundreds of extractions.&lt;/P&gt;
&lt;P&gt;In my orgs IdAM solution, we have hundreds of various user claims.&lt;/P&gt;
&lt;P&gt;ie)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN class=""&gt;Data=&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Claims&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;A href="http://wso2.org/claims/user" target="_blank" rel="noopener"&gt;http://wso2.org/claims/user&lt;/A&gt;&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;username&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="http://wso2.org/claims/role" target="_blank" rel="noopener"&gt;http://wso2.org/claims/role&lt;/A&gt;&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;user_role&lt;/SPAN&gt;&lt;SPAN&gt;",...etc}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to set up a single extraction that will extract all of these claims.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;My idea was the following&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;props.conf

EXTRACT-nrl_test = MatchAllClaims

transforms.conf

[MatchAllClaims]
FORMAT = user_$1::$2
REGEX = \"http:\/\/wso2.org\/claims\/(\w+)\":\"([^\"]+)
MV_ADD = true&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was hoping this would extract the field dynamically, but it did not work.&lt;/P&gt;
&lt;P&gt;is there a way to accomplish this with one extraction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 20:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688082#M114607</guid>
      <dc:creator>nateloepker</dc:creator>
      <dc:date>2024-05-20T20:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Extract Fields at Search-Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688091#M114608</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;EXTRACT&lt;/FONT&gt; props do not invoke a transform.&amp;nbsp; Use &lt;FONT face="courier new,courier"&gt;REPORT&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 00:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688091#M114608</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-05-21T00:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Extract Fields at Search-Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688103#M114610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252225"&gt;@nateloepker&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;your data seems to have a json format, did you tried using INDEXED_EXTRACTIONS = json in your sourcetype definition oer the spath command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/SearchReference/Spath)?" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/SearchReference/Spath)?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 05:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688103#M114610</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-21T05:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Extract Fields at Search-Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688202#M114621</link>
      <description>&lt;P&gt;hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;JSON extractions will not work for this. The full event is not in JSON, only the data portion&lt;/P&gt;&lt;P&gt;example event (without all of the claims)...&lt;/P&gt;&lt;P&gt;TID: [-1234]&amp;nbsp; [2024-05-21 17:40:35,777] [asdf-asdf-asdf-asdf-asdf ] INFO {AUDIT_LOG} - Initiator=initiator Action=action Target=target Data= &lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Claims&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{ "&lt;SPAN class=""&gt;&lt;A href="http://wso2.org/claims/" target="_blank" rel="noopener"&gt;http://wso2.org/claims/&lt;/A&gt;&lt;/SPAN&gt;username":"user", "&lt;SPAN class=""&gt;&lt;A href="http://wso2.org/claims/" target="_blank" rel="noopener"&gt;http://wso2.org/claims/&lt;/A&gt;&lt;/SPAN&gt;role":"role"}}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688202#M114621</guid>
      <dc:creator>nateloepker</dc:creator>
      <dc:date>2024-05-21T17:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Extract Fields at Search-Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688203#M114622</link>
      <description>&lt;P&gt;Thank you, good catch. Not sure how I messed that up.&lt;/P&gt;&lt;P&gt;I have corrected that error now, but I still do not get multiple fields extracted from this single extraction.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Dynamically-Extract-Fields-at-Search-Time/m-p/688203#M114622</guid>
      <dc:creator>nateloepker</dc:creator>
      <dc:date>2024-05-21T17:47:11Z</dc:date>
    </item>
  </channel>
</rss>

