<?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: What is the difference between DEST_KEY= _TCP_ROUTING  and DEST_KEY = _MetaData:Index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327843#M60875</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/76857"&gt;@manikanta66&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;_TCP_ROUTING routes set of data to set of servers which you have defined in outputs.conf with stanza starting from &lt;CODE&gt;[tcpout:....]&lt;/CODE&gt;&lt;BR /&gt;
_MetaData:Index will route set of data to different index.&lt;/P&gt;

&lt;P&gt;Example: _TCP_ROUTING&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-routing=errorRouting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[errorRouting]
REGEX=error
DEST_KEY=_TCP_ROUTING
FORMAT=errorGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:errorGroup]
server=10.10.0.1:9997, 10.10.0.2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In above example splunk will find &lt;CODE&gt;error&lt;/CODE&gt; word from &lt;CODE&gt;test&lt;/CODE&gt; sourcetype raw data and it will send it to tcpout group &lt;CODE&gt;errorGroup&lt;/CODE&gt; which will send data to 2 indexers in load balanced way.&lt;/P&gt;

&lt;P&gt;Example: _MetaData:Index&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-routing=errorRouting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[errorRouting]
REGEX=error
DEST_KEY=_MetaData:Index
FORMAT= error_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let's assume that &lt;CODE&gt;test&lt;/CODE&gt; sourcetype is sending data to &lt;CODE&gt;ok_index&lt;/CODE&gt; index, now based on above example splunk will find raw data from &lt;CODE&gt;test&lt;/CODE&gt; sourcetype with word &lt;CODE&gt;error&lt;/CODE&gt; and it will write it to &lt;CODE&gt;error_index&lt;/CODE&gt; index.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:04:11 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2020-09-29T17:04:11Z</dc:date>
    <item>
      <title>What is the difference between DEST_KEY= _TCP_ROUTING  and DEST_KEY = _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327842#M60874</link>
      <description>&lt;P&gt;Please give me a practical explanation of &lt;STRONG&gt;DEST_KEY&lt;/STRONG&gt; usage in transforms.conf &lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 11:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327842#M60874</guid>
      <dc:creator>manikanta66</dc:creator>
      <dc:date>2017-12-05T11:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between DEST_KEY= _TCP_ROUTING  and DEST_KEY = _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327843#M60875</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/76857"&gt;@manikanta66&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;_TCP_ROUTING routes set of data to set of servers which you have defined in outputs.conf with stanza starting from &lt;CODE&gt;[tcpout:....]&lt;/CODE&gt;&lt;BR /&gt;
_MetaData:Index will route set of data to different index.&lt;/P&gt;

&lt;P&gt;Example: _TCP_ROUTING&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-routing=errorRouting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[errorRouting]
REGEX=error
DEST_KEY=_TCP_ROUTING
FORMAT=errorGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:errorGroup]
server=10.10.0.1:9997, 10.10.0.2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In above example splunk will find &lt;CODE&gt;error&lt;/CODE&gt; word from &lt;CODE&gt;test&lt;/CODE&gt; sourcetype raw data and it will send it to tcpout group &lt;CODE&gt;errorGroup&lt;/CODE&gt; which will send data to 2 indexers in load balanced way.&lt;/P&gt;

&lt;P&gt;Example: _MetaData:Index&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-routing=errorRouting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[errorRouting]
REGEX=error
DEST_KEY=_MetaData:Index
FORMAT= error_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let's assume that &lt;CODE&gt;test&lt;/CODE&gt; sourcetype is sending data to &lt;CODE&gt;ok_index&lt;/CODE&gt; index, now based on above example splunk will find raw data from &lt;CODE&gt;test&lt;/CODE&gt; sourcetype with word &lt;CODE&gt;error&lt;/CODE&gt; and it will write it to &lt;CODE&gt;error_index&lt;/CODE&gt; index.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327843#M60875</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-09-29T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between DEST_KEY= _TCP_ROUTING  and DEST_KEY = _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327844#M60876</link>
      <description>&lt;P&gt;Hi @harsmarvania57,&lt;/P&gt;

&lt;P&gt;Thanks for your response. I have a doubt in your answer.&lt;/P&gt;

&lt;H2&gt;as per your 2nd example, the UF contain inputs.conf like below?&lt;/H2&gt;

&lt;OL&gt;
&lt;LI&gt;[monitor://var/www/testing.log]&lt;/LI&gt;
&lt;LI&gt;disabled = 0&lt;/LI&gt;
&lt;LI&gt;sourcetype = test&lt;/LI&gt;
&lt;LI&gt;index = ok_index&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;you said "&lt;STRONG&gt;test sourcetype with word error will write it to error_index&lt;/STRONG&gt;"&lt;BR /&gt;
for the FORMAT key value,  you mention &lt;STRONG&gt;error_index&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;here my doubts are&lt;BR /&gt;
1.which name I choose for a new index in the indexer&lt;BR /&gt;
&lt;STRONG&gt;ok index&lt;/STRONG&gt; OR &lt;STRONG&gt;error_index&lt;/STRONG&gt;?&lt;BR /&gt;
2.If I have two indexers, How HF will find index without specifying the target-group in the FORMAT?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 12:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327844#M60876</guid>
      <dc:creator>manikanta66</dc:creator>
      <dc:date>2017-12-06T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between DEST_KEY= _TCP_ROUTING  and DEST_KEY = _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327845#M60877</link>
      <description>&lt;P&gt;Based on 2nd example both index will require on your Indexers (&lt;STRONG&gt;ok_index&lt;/STRONG&gt; and &lt;STRONG&gt;error_index&lt;/STRONG&gt;)&lt;/P&gt;

&lt;P&gt;Let's say you have below events in your log files&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;30-10-2017GMT17:12:00 ERROR This is error
30-10-2017GMT17:12:50 INFO This is info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this case 1st line(event) will got to &lt;STRONG&gt;error_index&lt;/STRONG&gt; and 2nd line(event) will go to &lt;STRONG&gt;ok_index&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;You need to specify index name in &lt;CODE&gt;FORMAT&lt;/CODE&gt; on HF in 2nd example, otherwise it will not work.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 13:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327845#M60877</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-06T13:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between DEST_KEY= _TCP_ROUTING  and DEST_KEY = _MetaData:Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327846#M60878</link>
      <description>&lt;P&gt;Thank you @harsmarvania57&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 05:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-difference-between-DEST-KEY-TCP-ROUTING-and-DEST-KEY/m-p/327846#M60878</guid>
      <dc:creator>manikanta66</dc:creator>
      <dc:date>2017-12-07T05:48:24Z</dc:date>
    </item>
  </channel>
</rss>

