<?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: Transforms Truncating - Setting SOURCE_KEY in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752445#M119474</link>
    <description>&lt;P&gt;Okay, I think I should look up potentially making the request.body an indexed field.&lt;/P&gt;&lt;P&gt;Is this something that can be done in a performant way?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 18:40:42 GMT</pubDate>
    <dc:creator>mmendez-opentec</dc:creator>
    <dc:date>2025-08-28T18:40:42Z</dc:date>
    <item>
      <title>Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752413#M119469</link>
      <description>&lt;P&gt;We are currently having an issue where our masking transforms are not working due to the length of _raw being too large. If we set LOOKAHEAD to a higher value the masking works.&lt;/P&gt;&lt;P&gt;_raw has request.body at the end of the event.&lt;/P&gt;&lt;P&gt;Since request.body is the only relevant part of the event from a transform perspective, we tried to set as the SOURCE_KEY, but it doesn't seem to do anything and there's no logs from what we can see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tried SOURCE_KEY&lt;/SPAN&gt;&lt;SPAN&gt; = request.body or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SOURCE_KEY&lt;/SPAN&gt;&lt;SPAN&gt; = request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and tried with&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[acceptable_keys]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;SPAN&gt; = request.body&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[acceptable_keys]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;SPAN&gt; = request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmendezopentec_0-1756399062632.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40099i623EE097D6892DAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmendezopentec_0-1756399062632.png" alt="mmendezopentec_0-1756399062632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we use SOURCE_KEY to limit where the transforms regex is applying?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 16:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752413#M119469</guid>
      <dc:creator>mmendez-opentec</dc:creator>
      <dc:date>2025-08-28T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752414#M119470</link>
      <description>&lt;P&gt;More info, our stanza in transforms.conf looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[ssn]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REGEX&lt;/SPAN&gt;&lt;SPAN&gt; = (.*)((?i)\\&lt;/SPAN&gt;&lt;SPAN&gt;"ssn\\"&lt;/SPAN&gt;&lt;SPAN&gt;:)(\s*)(\\&lt;/SPAN&gt;&lt;SPAN&gt;")(\d+)(\\"&lt;/SPAN&gt;&lt;SPAN&gt;)(\s*)(.*)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt; = ssn::&lt;/SPAN&gt;&lt;SPAN&gt;"$5"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WRITE_META&lt;/SPAN&gt;&lt;SPAN&gt; = true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SOURCE_KEY = request.body&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[acceptable_keys]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= request.body&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Aug 2025 17:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752414#M119470</guid>
      <dc:creator>mmendez-opentec</dc:creator>
      <dc:date>2025-08-28T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752419#M119471</link>
      <description>&lt;P&gt;I think that acceptable_keys didn't work as your json event is in escaped text mode in disc.&lt;/P&gt;&lt;P&gt;If you want to use event like json you must use INGEST_EVAL and json-functions. But I expecting that in that case you hit again a same limit to read that event in, convert it from escaped text to json and save again back to stream.&lt;/P&gt;&lt;P&gt;The best option is do this masking before ingestion with some other tool than Splunk's props and transforms.&lt;/P&gt;&lt;P&gt;Is it possible that you ask that source already mask it or can you use e.g. Ingest Action or Edge or Ingest Processor? Also one option is Cribl outside of Splunk world.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752419#M119471</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-08-28T18:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752420#M119472</link>
      <description>&lt;P&gt;SOURCE_KEY in case of index-time transforms requires indexed fields. You can't apply a transform to search-time extracted field because it doesn't exist in the indexing pipeline.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752420#M119472</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-28T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752444#M119473</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;1 Is there a way to check this assumption? "&lt;SPAN&gt;your json event is in escaped text mode in disc."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There are a couple of options to make this work outside of Splunk, but are not ideal.&lt;/P&gt;&lt;P&gt;2 Maybe is there some way to index the request.body or set it to a be readable as a SOURCE_KEY in a performant way? Maybe some logic in the forwarder?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752444#M119473</guid>
      <dc:creator>mmendez-opentec</dc:creator>
      <dc:date>2025-08-28T18:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752445#M119474</link>
      <description>&lt;P&gt;Okay, I think I should look up potentially making the request.body an indexed field.&lt;/P&gt;&lt;P&gt;Is this something that can be done in a performant way?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752445#M119474</guid>
      <dc:creator>mmendez-opentec</dc:creator>
      <dc:date>2025-08-28T18:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752446#M119475</link>
      <description>&lt;P&gt;Don't do that. Indexed fields of high cardinality are not a good idea. Oh, and even if you wanted to modify an indexed field, it wouldn't change the raw data.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752446#M119475</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-28T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752447#M119476</link>
      <description>&lt;P&gt;Yes. Edge processor seems to be the best shot here (anyway, manipulating structured data like json with regexes is risky).&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752447#M119476</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-28T18:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752449#M119477</link>
      <description>&lt;P&gt;Okay thanks for the feedback&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 19:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752449#M119477</guid>
      <dc:creator>mmendez-opentec</dc:creator>
      <dc:date>2025-08-28T19:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms Truncating - Setting SOURCE_KEY</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752450#M119478</link>
      <description>Click &amp;gt; before event, it opens to you more information where you could see and click button "Event Actions", then select "Show Source".&lt;BR /&gt;I your event is not too long it open it as it is in disk. There you can see e.g. those escape marks etc.</description>
      <pubDate>Thu, 28 Aug 2025 19:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-Truncating-Setting-SOURCE-KEY/m-p/752450#M119478</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-08-28T19:12:01Z</dc:date>
    </item>
  </channel>
</rss>

