<?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 Index Time Extractions Regex meeting character limit? (props.conf) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-Time-Extractions-Regex-meeting-character-limit-props-conf/m-p/596927#M104201</link>
    <description>&lt;P&gt;I have been fighting with a regex in my props.conf (&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Regex-working-on-search-but-not-props-transforms/m-p/596487/highlight/false" target="_self"&gt;Regex-working-on-search-but-not-props-transforms&lt;/A&gt;&amp;nbsp;) and after a lot of testing, I came to the conclusion that my regex is fine. And my props.conf is fine. I had originally failed to see SOME were processing fine, and assumed all were bad. So, I checked to see if there was a cutoff where some were good vs bad, and found one, inside my len(_raw) field. Turns out, my props.conf seems to stop working somewhere after 4096 character count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I made some test data and pulled it into splunk&lt;/P&gt;&lt;P&gt;Bash:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash
x="a"
count=1
while [ $count -le 5000 ]
do
  echo "$x regex"
  ((count+=1))
  x+="a"
done&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This just makes a bunch of lines, incrementing with another char each time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;a regex
aa regex
aaa regex
aaaa regex
aaaaa regex
aaaaaa regex
aaaaaaa regex&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I pull this into Splunk, 1 line per log. Static host field = "x"&lt;/P&gt;&lt;P&gt;Props:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::x]
SHOULD_LINEMERGE = false
TRANSFORMS-again = regexExtract&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Transforms:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[regexExtract]
REGEX = .*(regex)
DEST_KEY= _raw
FORMAT = $1
WRITE_META = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="delete" sourcetype="output.log"   | eval length=len(_raw) | search  length&amp;lt;4100  |  table length | sort - length&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming my KV limits are ok, because this btool snippit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/etc/system/default/limits.conf [kv]
/opt/splunk/etc/system/default/limits.conf avg_extractor_time = 500
/opt/splunk/etc/system/default/limits.conf indexed_kv_limit = 200
/opt/splunk/etc/system/default/limits.conf limit = 100
/opt/splunk/etc/system/default/limits.conf max_extractor_time = 1000
/opt/splunk/etc/system/default/limits.conf max_mem_usage_mb = 200
/opt/splunk/etc/system/default/limits.conf maxchars = 10240
/opt/splunk/etc/system/default/limits.conf maxcols = 512&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------&lt;/P&gt;&lt;P&gt;Now that we have all the setup, I search my index and see that every field up thought 4097 chars long will process the index time regex.&lt;/P&gt;&lt;P&gt;After that, the search time regex works fine, but index time is no longer functional.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oliverja_0-1652093934827.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19516i318ECE48C9A0B6A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oliverja_0-1652093934827.png" alt="oliverja_0-1652093934827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i get it to continue processing beyond that ~4100 chars?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 11:00:07 GMT</pubDate>
    <dc:creator>oliverja</dc:creator>
    <dc:date>2022-05-09T11:00:07Z</dc:date>
    <item>
      <title>Index Time Extractions Regex meeting character limit? (props.conf)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-Time-Extractions-Regex-meeting-character-limit-props-conf/m-p/596927#M104201</link>
      <description>&lt;P&gt;I have been fighting with a regex in my props.conf (&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Regex-working-on-search-but-not-props-transforms/m-p/596487/highlight/false" target="_self"&gt;Regex-working-on-search-but-not-props-transforms&lt;/A&gt;&amp;nbsp;) and after a lot of testing, I came to the conclusion that my regex is fine. And my props.conf is fine. I had originally failed to see SOME were processing fine, and assumed all were bad. So, I checked to see if there was a cutoff where some were good vs bad, and found one, inside my len(_raw) field. Turns out, my props.conf seems to stop working somewhere after 4096 character count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I made some test data and pulled it into splunk&lt;/P&gt;&lt;P&gt;Bash:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash
x="a"
count=1
while [ $count -le 5000 ]
do
  echo "$x regex"
  ((count+=1))
  x+="a"
done&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This just makes a bunch of lines, incrementing with another char each time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;a regex
aa regex
aaa regex
aaaa regex
aaaaa regex
aaaaaa regex
aaaaaaa regex&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I pull this into Splunk, 1 line per log. Static host field = "x"&lt;/P&gt;&lt;P&gt;Props:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::x]
SHOULD_LINEMERGE = false
TRANSFORMS-again = regexExtract&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Transforms:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[regexExtract]
REGEX = .*(regex)
DEST_KEY= _raw
FORMAT = $1
WRITE_META = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="delete" sourcetype="output.log"   | eval length=len(_raw) | search  length&amp;lt;4100  |  table length | sort - length&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming my KV limits are ok, because this btool snippit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/etc/system/default/limits.conf [kv]
/opt/splunk/etc/system/default/limits.conf avg_extractor_time = 500
/opt/splunk/etc/system/default/limits.conf indexed_kv_limit = 200
/opt/splunk/etc/system/default/limits.conf limit = 100
/opt/splunk/etc/system/default/limits.conf max_extractor_time = 1000
/opt/splunk/etc/system/default/limits.conf max_mem_usage_mb = 200
/opt/splunk/etc/system/default/limits.conf maxchars = 10240
/opt/splunk/etc/system/default/limits.conf maxcols = 512&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------&lt;/P&gt;&lt;P&gt;Now that we have all the setup, I search my index and see that every field up thought 4097 chars long will process the index time regex.&lt;/P&gt;&lt;P&gt;After that, the search time regex works fine, but index time is no longer functional.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oliverja_0-1652093934827.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19516i318ECE48C9A0B6A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oliverja_0-1652093934827.png" alt="oliverja_0-1652093934827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i get it to continue processing beyond that ~4100 chars?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 11:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-Time-Extractions-Regex-meeting-character-limit-props-conf/m-p/596927#M104201</guid>
      <dc:creator>oliverja</dc:creator>
      <dc:date>2022-05-09T11:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Index Time Extractions Regex meeting character limit? (props.conf)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-Time-Extractions-Regex-meeting-character-limit-props-conf/m-p/596930#M104202</link>
      <description>&lt;P&gt;Once I had "4096" as my limit, I was able to change focus a bit and figure out what was happening. So, way way too much time fighting with my logs, I fixed it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[regexExtract]
REGEX = .*(regex)
LOOKAHEAD=20000   &amp;lt;----THIS DEFAULTS TO 4096
DEST_KEY= _raw
FORMAT = $1
WRITE_META = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 11:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-Time-Extractions-Regex-meeting-character-limit-props-conf/m-p/596930#M104202</guid>
      <dc:creator>oliverja</dc:creator>
      <dc:date>2022-05-09T11:42:18Z</dc:date>
    </item>
  </channel>
</rss>

