<?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 of a field that already exists in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594151#M206793</link>
    <description>&lt;P&gt;The question is where does this field come from. You're saying it's auto-extracted but if the value in raw event is completely different then the field must be either a calculated field or provided as indexed field by the source (are you pushing the events with HEC?).&lt;/P&gt;&lt;P&gt;It's kinda strange and you should check all your ingestion process and source/sourcetype definitions.&lt;/P&gt;&lt;P&gt;But if you do a | rex command to extract your own value of category field, it should overwrite whatever is included in the event. Are you sure you're not mixing upper/lowercase in field names?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 19:58:24 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-04-18T19:58:24Z</dc:date>
    <item>
      <title>How to do a field extraction of a field that already exists?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594128#M206783</link>
      <description>&lt;P&gt;Gentlemen,&lt;BR /&gt;We are on Splunk Cloud.&lt;BR /&gt;&lt;BR /&gt;In my raw events coming from AWS , splunk by default shows a field called "&lt;STRONG&gt;category&lt;/STRONG&gt;" under "Interesting fields" . However, it's value ( as in it's extraction)&amp;nbsp; isn't what we are expecting it to be. It only manages to extract a part of the complete string.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The raw events have&amp;nbsp;&lt;STRONG&gt;category&lt;/STRONG&gt; as follows (In JSON format)&amp;nbsp;&lt;BR /&gt;"&lt;STRONG&gt;Policy:IAMUser/RootCredentialUsage&lt;/STRONG&gt;"&amp;nbsp; &amp;nbsp;(without quotes)&lt;BR /&gt;&lt;BR /&gt;But Splunk is instead showing the value of category as:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Policy&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neerajs_81_0-1650304556324.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19107iFDE3E79CAA411F85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neerajs_81_0-1650304556324.png" alt="neerajs_81_0-1650304556324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;.Now,&amp;nbsp; whats happening is if i use the IFX or rex command to create a field extraction&amp;nbsp; keeping the same name for my field i.e.&amp;nbsp; &lt;STRONG&gt;category&lt;/STRONG&gt;&amp;nbsp;and value:&amp;nbsp;&lt;STRONG&gt;Policy:IAMUser/RootCredentialUsage&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp;,&amp;nbsp; my newly extracted field keeps getting overwritten with the default old values again . I am assuming this is because&amp;nbsp; the names of the fields are same&amp;nbsp; ( category) , so splunk takes its own precedence.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;IS this the case of Index time vs Search Time field extraction conflict ?&lt;BR /&gt;&lt;BR /&gt;How to make Splunk use whatever value my field extraction ( as in rex or IFX) is extracting for &lt;STRONG&gt;category&lt;/STRONG&gt; and at the same time also retain its name as is ?&amp;nbsp; &amp;nbsp;Dont want the category field to display its old indexed value.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 16:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594128#M206783</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-04-19T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction of a field that already exists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594151#M206793</link>
      <description>&lt;P&gt;The question is where does this field come from. You're saying it's auto-extracted but if the value in raw event is completely different then the field must be either a calculated field or provided as indexed field by the source (are you pushing the events with HEC?).&lt;/P&gt;&lt;P&gt;It's kinda strange and you should check all your ingestion process and source/sourcetype definitions.&lt;/P&gt;&lt;P&gt;But if you do a | rex command to extract your own value of category field, it should overwrite whatever is included in the event. Are you sure you're not mixing upper/lowercase in field names?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594151#M206793</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-18T19:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction of a field that already exists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594172#M206800</link>
      <description>&lt;P&gt;Thanks for responding. Yes, the "category" field is provided as an indexed field.&amp;nbsp; The data is getting ingested via HEC (&amp;nbsp; Splunk TA for Amazon Kinesis Firehose).&amp;nbsp; Does anything change if its coming via HEC ?&lt;BR /&gt;Positive there is no issue of upper case/lower case mismatch&lt;BR /&gt;&lt;BR /&gt;What do you recommend then,&amp;nbsp; if the indexed field is not getting overwritten by whatever value my rex / IFX is extracting for it ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 04:41:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594172#M206800</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-04-19T04:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction of a field that already exists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594175#M206802</link>
      <description>&lt;P&gt;To be fully honest, I've never investigated what happens if you have the indexed field and try to extract it search-time as well. But as I said, any field should be overwritable with explicit field manipulation in search-time.&lt;/P&gt;&lt;P&gt;Anyway, is there no possibility to change the source behaviour? Because it's very strange that it defines a field which is already present (with another value) within the event itself.&lt;/P&gt;&lt;P&gt;Of course you can simply define an extraction to another field name (like eventcategory or something like that) but that's counterintuitive and can be confusing.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 05:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594175#M206802</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-19T05:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction of a field that already exists</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594176#M206803</link>
      <description>&lt;P&gt;Thanks, yeah maybe a different field name is the way to go.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 05:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-field-extraction-of-a-field-that-already-exists/m-p/594176#M206803</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-04-19T05:05:17Z</dc:date>
    </item>
  </channel>
</rss>

