<?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: Split sourcetype + indexed fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680935#M113763</link>
    <description>&lt;P&gt;Nope,&lt;/P&gt;&lt;P&gt;No JSON. CEF events&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2024 07:04:17 GMT</pubDate>
    <dc:creator>michael_vi</dc:creator>
    <dc:date>2024-03-17T07:04:17Z</dc:date>
    <item>
      <title>Split sourcetype + indexed fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680574#M113701</link>
      <description>&lt;P&gt;I have an issue with adding indexed fields to each of the new (splatted) sourcetype:&lt;/P&gt;&lt;P&gt;Configuration that "duplicated" indexed fields for each sourcetype:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now I see fields: indexedfileds1,&amp;nbsp;indexedfileds2 and&amp;nbsp;indexedfileds3 as 200%,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example: indexedfields1 values:&lt;/P&gt;&lt;P&gt;valuie1 150%&lt;/P&gt;&lt;P&gt;value2 50%&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[MAIN SOURCE]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = {\"time\":\"
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z
TRUNCATE = 999999 
TRANSFORMS-changesourcetype = sourcetype1, sourcetype2
TRANSFORMS-indexedfields = indexedfield1, indexedfield2, indexedfield3

[sourcetype1]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = {\"time\":\"
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z
TRUNCATE = 999999 

[sourcetype2]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = {\"time\":\"
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z
TRUNCATE = 999999 &lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[indexedfield1]
REGEX=
FORMAT=
WRITE_META=

[indexedfield2]
REGEX=
FORMAT=
WRITE_META=

[indexedfield3]
REGEX=
FORMAT=
WRITE_META=

[sourcetype1]
DEST_KEY-MetaData:Sourcetype
REGEX = some regex
FORMAT = sourcetype::sourcetype1

[sourcetype2]
DEST_KEY-MetaData:Sourcetype
REGEX = some regex
FORMAT = sourcetype::sourcetype2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought to move the indexed fields to each of the new sourcetype but then I see no indexed fields.&lt;/P&gt;&lt;P&gt;Check with | tstats count&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[MAIN SOURCE]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = {\"time\":\"
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z
TRUNCATE = 999999 
TRANSFORMS-changesourcetype = sourcetype1, sourcetype2

[sourcetype1]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = {\"time\":\"
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z
TRUNCATE = 999999 
TRANSFORMS-indexedfields = indexedfield1, indexedfield2, indexedfield3

[sourcetype2]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = {\"time\":\"
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z
TRUNCATE = 999999 
TRANSFORMS-indexedfields = indexedfield1, indexedfield2, indexedfield3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the needed configuration to see indexed fields per sourcetype, w/o showing 200%&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680574#M113701</guid>
      <dc:creator>michael_vi</dc:creator>
      <dc:date>2024-03-13T16:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Split sourcetype + indexed fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680650#M113713</link>
      <description>Hi&lt;BR /&gt;You have those on indexer(s)/heavy forwarders and your source is probably json?&lt;BR /&gt;Do you have on SH side KV_MODE=json definition for those sourcetypes?&lt;BR /&gt;r. Ismo</description>
      <pubDate>Thu, 14 Mar 2024 07:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680650#M113713</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-14T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Split sourcetype + indexed fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680935#M113763</link>
      <description>&lt;P&gt;Nope,&lt;/P&gt;&lt;P&gt;No JSON. CEF events&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 07:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/680935#M113763</guid>
      <dc:creator>michael_vi</dc:creator>
      <dc:date>2024-03-17T07:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Split sourcetype + indexed fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/681003#M113772</link>
      <description>Can you give some scrambled test events to check this?</description>
      <pubDate>Mon, 18 Mar 2024 10:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-sourcetype-indexed-fields/m-p/681003#M113772</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-18T10:21:22Z</dc:date>
    </item>
  </channel>
</rss>

