<?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: Field Extraction from Indexed field in Security</title>
    <link>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686308#M17811</link>
    <description>&lt;P&gt;Tell Splunk which field to extract from by using the &lt;FONT face="courier new,courier"&gt;in&lt;/FONT&gt; option.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-service = [^:]+:[^:]+:(?&amp;lt;service&amp;gt;.+)$ in source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 12:43:25 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-05-03T12:43:25Z</dc:date>
    <item>
      <title>Field Extraction from Indexed field</title>
      <link>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686298#M17808</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to extract a value from the indexed field. i.e from &lt;STRONG&gt;source&lt;/STRONG&gt; field . I have added the regex in props.conf&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example :&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source  = 234234324234:us-west-2:firehose_list_tags_for_resource&lt;/LI-CODE&gt;
&lt;P&gt;I want everything after second : (colon) as service i.e&amp;nbsp;&lt;SPAN&gt;firehose_list_tags_for_resource&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I have added in props.conf as below :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EXTRACT-service = source([^:]+:[^:]+:(?&amp;lt;service&amp;gt;.+)$)&lt;/LI-CODE&gt;
&lt;P&gt;This has created the field service but fetching wrong value. It is fetching last part of raw data.&lt;BR /&gt;&lt;BR /&gt;Please can anyone help me to understand how can I extract field value from indexed data ? Should I add in transforms.conf as well ?&lt;BR /&gt;&lt;BR /&gt;Please can anyone guide me. It helps me lot&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686298#M17808</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-05-03T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Indexed field</title>
      <link>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686301#M17809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241735"&gt;@Poojitha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=source ":(?&amp;lt;your_field&amp;gt;\w+)$"&lt;/LI-CODE&gt;&lt;P&gt;or in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-service = EXTRACT-service = source([^:]+:[^:]+:(?&amp;lt;service&amp;gt;.+)$) in source&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/NBjX8h/1" target="_blank"&gt;https://regex101.com/r/NBjX8h/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686301#M17809</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-03T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Indexed field</title>
      <link>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686306#M17810</link>
      <description>&lt;P&gt;Use the below as an example, using both props and transforms,&amp;nbsp; change to your sourcetype that you are using and if it works, change your group names if desired.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Props.conf&lt;BR /&gt;[my_sourcetype]&lt;BR /&gt;REPORT-my_service = extract_service&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Transforms.conf&lt;BR /&gt;[extract_service]&lt;BR /&gt;SOURCE_KEY = source&lt;BR /&gt;REGEX = [^:]+:(?&amp;lt;my_service&amp;gt;.+)$&lt;BR /&gt;FORMAT = my_service::$1&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686306#M17810</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-03T12:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Indexed field</title>
      <link>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686308#M17811</link>
      <description>&lt;P&gt;Tell Splunk which field to extract from by using the &lt;FONT face="courier new,courier"&gt;in&lt;/FONT&gt; option.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-service = [^:]+:[^:]+:(?&amp;lt;service&amp;gt;.+)$ in source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 12:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Field-Extraction-from-Indexed-field/m-p/686308#M17811</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-05-03T12:43:25Z</dc:date>
    </item>
  </channel>
</rss>

