<?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: how to exclude in _MetaData:Index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579746#M102329</link>
    <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp; for your help!&lt;/P&gt;&lt;P&gt;I took it for granted that "REGEX=..." means "index=...", and I was confused by different results from 2 servers I was using for test. now I realized that one of them has "-" in computer name, thus my "&lt;SPAN&gt;REGEX=[a-zA-Z0-9]+" must have excluded.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please correct me if I am wrong: the regex only works as "index=..." when "SOURCE_KEY = _MetaData:Index" is there.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jan 2022 22:34:25 GMT</pubDate>
    <dc:creator>AllenZhang</dc:creator>
    <dc:date>2022-01-02T22:34:25Z</dc:date>
    <item>
      <title>how to exclude in _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579733#M102323</link>
      <description>&lt;P&gt;I noticed in our environment, from many uf, the internal logs were indexed under a different index name. After investigation, I find it's related to some settings in transforms.conf.&lt;/P&gt;&lt;P&gt;So in transforms.conf, it's like:&lt;/P&gt;&lt;P&gt;[test_windows_index]&lt;BR /&gt;REGEX =.*&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;FORMAT = rexall_windows&lt;/P&gt;&lt;P&gt;in props.conf, for certain hosts, there're settings like:&lt;/P&gt;&lt;P&gt;[host::testserver1]&lt;BR /&gt;TRANSFORMS-Microsoft_AD_1 = test_windows_index, Routing_testCloud&lt;/P&gt;&lt;P&gt;I believe I should try to exclude indexes like "_internal, _audit",&lt;/P&gt;&lt;P&gt;so I changed REGEX=.* to&amp;nbsp; REGEX=[a-zA-Z0-9]+&lt;/P&gt;&lt;P&gt;but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;Appreciate if somebody here can help or provide suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 16:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579733#M102323</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2022-01-02T16:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to exclude in _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579734#M102324</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/125477"&gt;@AllenZhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default value for SOURCE_KEY is _raw, so REGEX matches against the raw event data.&lt;/P&gt;&lt;P&gt;Events headed for internal indexes should already have an index value defined, so you might try matching against _MetaData:Index and reformatting when the current value does not begin with an underscore:&lt;/P&gt;&lt;P&gt;[test_windows_index]&lt;BR /&gt;REGEX = ^(?!_).&lt;BR /&gt;FORMAT = rexall_windows&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;SOURCE_KEY = _MetaData:Index&lt;/P&gt;&lt;P&gt;This should work for unstructured source types; however, data for events cooked by the forwarder, e.g. with INDEXD_EXTRACTIONS or force_local_processing = true in props.conf, may not have transforms applied by a heavy forwarder or indexer.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 17:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579734#M102324</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2022-01-02T17:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to exclude in _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579746#M102329</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp; for your help!&lt;/P&gt;&lt;P&gt;I took it for granted that "REGEX=..." means "index=...", and I was confused by different results from 2 servers I was using for test. now I realized that one of them has "-" in computer name, thus my "&lt;SPAN&gt;REGEX=[a-zA-Z0-9]+" must have excluded.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please correct me if I am wrong: the regex only works as "index=..." when "SOURCE_KEY = _MetaData:Index" is there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 22:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-exclude-in-MetaData-Index/m-p/579746#M102329</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2022-01-02T22:34:25Z</dc:date>
    </item>
  </channel>
</rss>

