<?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 change index based on MetaData:Source. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619938#M215478</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247771"&gt;@mskrzynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if al this data source must go in the same index, you can specify this index in the input, the method you used is to override the index value.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 17:01:41 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-11-07T17:01:41Z</dc:date>
    <item>
      <title>How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619895#M215458</link>
      <description>&lt;P class="lia-align-left"&gt;Hello, can anyone tell me why this configuration isn’t working?&lt;/P&gt;&lt;P class="lia-align-left"&gt;I would like to change index name from main to hue, I’m getting data from db_connect from HF.&lt;/P&gt;&lt;P class="lia-align-left"&gt;I would like to change the index name on main indexer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[set_index_hue]&lt;/P&gt;&lt;P&gt;SOURCE_KEY = MetaData:Source&lt;/P&gt;&lt;P&gt;REGEX = ^source::(stream\:Splunk_Postgres)$&lt;/P&gt;&lt;P&gt;DEST_KEY = _MetaData:Index&lt;/P&gt;&lt;P&gt;FORMAT = hue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[stream:postgres]&lt;/P&gt;&lt;P&gt;TRANSFORMS-stream-postgres = set_index_hue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards M.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:46:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619895#M215458</guid>
      <dc:creator>mskrzynski</dc:creator>
      <dc:date>2022-11-07T14:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619923#M215469</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247771"&gt;@mskrzynski&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;what's a sample of the source to use for the regex?&lt;/P&gt;&lt;P&gt;the syntax is correct, the only possible problem is that the regex isn't correct.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 15:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619923#M215469</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-07T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619930#M215472</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;I've attached some screenshots.&lt;/P&gt;&lt;P&gt;Best regards M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619930#M215472</guid>
      <dc:creator>mskrzynski</dc:creator>
      <dc:date>2022-11-07T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619932#M215474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247771"&gt;@mskrzynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm sorry but I probably didn't express myself well: the regex works on the source field, so I need a couple of examples of this field.&lt;/P&gt;&lt;P&gt;Maybe is it "&lt;SPAN&gt;stream:Splunk_Postgres"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in this case, if it's fixed, you don't need to have the SOURCE_KEY in transforms.conf&amp;nbsp;&amp;nbsp;and you can use an easier regex:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;props.conf:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[stream:postgres]
TRANSFORMS-stream-postgres = set_index_hue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_index_hue]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = hue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619932#M215474</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-07T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619936#M215476</link>
      <description>&lt;P&gt;Hello again, sample of sources:&lt;/P&gt;&lt;P&gt;stream:Splunk_IP&lt;BR /&gt;stream:Splunk_Tcp&lt;BR /&gt;stream:Splunk_SSLActivity&lt;BR /&gt;stream:Splunk_Udp&lt;BR /&gt;stream:Splunk_DNSRequestResponse&lt;BR /&gt;stream:Splunk_DNSIntegrity&lt;BR /&gt;stream:Splunk_DNSServerQuery&lt;BR /&gt;stream:Splunk_DNSServerResponse&lt;BR /&gt;stream:Splunk_DNSClientQueryTypes&lt;BR /&gt;stream:Splunk_DNSClientErrors&lt;BR /&gt;stream:Splunk_Postgres&lt;/P&gt;&lt;P&gt;I would like to catch only&amp;nbsp;stream:Splunk_Postgres&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619936#M215476</guid>
      <dc:creator>mskrzynski</dc:creator>
      <dc:date>2022-11-07T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619937#M215477</link>
      <description>&lt;P&gt;Why not change the inputs.conf setting to specify the proper index?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:58:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619937#M215477</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-07T16:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619938#M215478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247771"&gt;@mskrzynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if al this data source must go in the same index, you can specify this index in the input, the method you used is to override the index value.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619938#M215478</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-07T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619939#M215479</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;I know,&amp;nbsp; I have to move only stream:postgres to diferent index&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619939#M215479</guid>
      <dc:creator>mskrzynski</dc:creator>
      <dc:date>2022-11-07T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619940#M215480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247771"&gt;@mskrzynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;P&gt;props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::stream:Splunk_postgres]
TRANSFORMS-stream-postgres = set_index_hue&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_index_hue]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = hue&lt;/LI-CODE&gt;&lt;P&gt;Check the value of the data source for the stanza header in props.conf, it must be&lt;/P&gt;&lt;P&gt;[source::&amp;lt;data_dource&amp;gt;]&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619940#M215480</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-07T17:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619947#M215483</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&amp;nbsp;no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf

[source::stream:Splunk_postgres]
TRANSFORMS-stream-postgres = set_index_hue
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;transforms.conf

[set_index_hue]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = hue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/619947#M215483</guid>
      <dc:creator>mskrzynski</dc:creator>
      <dc:date>2022-11-07T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to change index based on MetaData:Source.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/620056#M215529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247771"&gt;@mskrzynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;where do you located these files?&lt;/P&gt;&lt;P&gt;they must be in Indexers or (when present), as in your case, on Heavy Forwarders.&lt;/P&gt;&lt;P&gt;Then are you sure that the source is exactly "stream:Splunk_postgres" with attention to the letter case?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-index-based-on-MetaData-Source/m-p/620056#M215529</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-08T07:50:57Z</dc:date>
    </item>
  </channel>
</rss>

