<?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 Dynamic field name extration in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324707#M162678</link>
    <description>&lt;P&gt;Here is the data : &lt;/P&gt;

&lt;P&gt;"app": "https", "purpose": "bypass", "direction": "outbound", "int64gapps": "0" }, { "app": "https", "purpose": "inspect", "direction": "outbound", "int64gapps": "0" }, { "app": "http", "purpose": "bypass", "direction": "outbound", "int64gapps": "0" }, { "app": "http", "purpose": "inspect", "direction": "outbound", "int64gapps": "0" &lt;/P&gt;

&lt;P&gt;And here is regex: \"app":\s\"(\w*)",\s"purpose":\s\"(\w*)",\s"direction":\s"\w*",\s"int64gapps":\s"(\d*)"&lt;/P&gt;

&lt;P&gt;I have 3 groups  and as a Format I want it to use Group 1 and 2 as a Field name and group 3 as a value.  so my FORMAT= $1.$2::$3&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.conf&lt;/STRONG&gt;&lt;BR /&gt;
[Bandtest]&lt;BR /&gt;
REGEX=(\"app":\s\"(\w*)",\s"purpose":\s\"(\w*)",\s"direction":\s"\w*",\s"int64gapps":\s"(\d*)")&lt;BR /&gt;
FORMAT=$1.$2::$3&lt;BR /&gt;
WRITE_META = True&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;PROPS.cong&lt;/STRONG&gt;&lt;BR /&gt;
[radware_api_stat]&lt;BR /&gt;
TRANSFORMS-Bandtest = Bandtest&lt;/P&gt;

&lt;P&gt;I need SPlunk to extract field names httpbypass and httpinspect, it only extracts the first one.  in short I need it to get multiple field names per event using the same regex,  is this function available?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:16:28 GMT</pubDate>
    <dc:creator>ninisimonishvil</dc:creator>
    <dc:date>2020-09-29T18:16:28Z</dc:date>
    <item>
      <title>Dynamic field name extration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324707#M162678</link>
      <description>&lt;P&gt;Here is the data : &lt;/P&gt;

&lt;P&gt;"app": "https", "purpose": "bypass", "direction": "outbound", "int64gapps": "0" }, { "app": "https", "purpose": "inspect", "direction": "outbound", "int64gapps": "0" }, { "app": "http", "purpose": "bypass", "direction": "outbound", "int64gapps": "0" }, { "app": "http", "purpose": "inspect", "direction": "outbound", "int64gapps": "0" &lt;/P&gt;

&lt;P&gt;And here is regex: \"app":\s\"(\w*)",\s"purpose":\s\"(\w*)",\s"direction":\s"\w*",\s"int64gapps":\s"(\d*)"&lt;/P&gt;

&lt;P&gt;I have 3 groups  and as a Format I want it to use Group 1 and 2 as a Field name and group 3 as a value.  so my FORMAT= $1.$2::$3&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.conf&lt;/STRONG&gt;&lt;BR /&gt;
[Bandtest]&lt;BR /&gt;
REGEX=(\"app":\s\"(\w*)",\s"purpose":\s\"(\w*)",\s"direction":\s"\w*",\s"int64gapps":\s"(\d*)")&lt;BR /&gt;
FORMAT=$1.$2::$3&lt;BR /&gt;
WRITE_META = True&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;PROPS.cong&lt;/STRONG&gt;&lt;BR /&gt;
[radware_api_stat]&lt;BR /&gt;
TRANSFORMS-Bandtest = Bandtest&lt;/P&gt;

&lt;P&gt;I need SPlunk to extract field names httpbypass and httpinspect, it only extracts the first one.  in short I need it to get multiple field names per event using the same regex,  is this function available?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324707#M162678</guid>
      <dc:creator>ninisimonishvil</dc:creator>
      <dc:date>2020-09-29T18:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field name extration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324708#M162679</link>
      <description>&lt;P&gt;Is it just me, or are you processing multiple events as 1 and using field values as field names?&lt;/P&gt;

&lt;P&gt;Does this have to be extracted at index time?&lt;/P&gt;

&lt;P&gt;Perhaps simpler to just extract the actual fields and their values and then create some calculated fields off of those to club things together as you are describing here? But still a bit confused about the context to be honest...&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 13:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324708#M162679</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-02-28T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field name extration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324709#M162680</link>
      <description>&lt;P&gt;now I have changed it to REPORT but another issue &lt;BR /&gt;
 I have two groups and in Format I want to  concatenate values  FORMAT=handrej_Client_outbound::$1.$2  where first grouping is a sentence and second number. &lt;/P&gt;

&lt;P&gt;is there any special syntax for that?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-field-name-extration/m-p/324709#M162680</guid>
      <dc:creator>ninisimonishvil</dc:creator>
      <dc:date>2020-09-29T18:13:46Z</dc:date>
    </item>
  </channel>
</rss>

