<?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: Is there a parmeter for _TCP_ROUTING when using splunk oneshot? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591501#M103590</link>
    <description>&lt;P&gt;how does it determine where to send the oneshot to in this scenario? I've checked both environment and it only sends the&amp;nbsp;&lt;SPAN&gt;SplunkPROD and not both.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 13:40:05 GMT</pubDate>
    <dc:creator>aa70627</dc:creator>
    <dc:date>2022-03-30T13:40:05Z</dc:date>
    <item>
      <title>Is there a parmeter for _TCP_ROUTING when using splunk oneshot?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591303#M103570</link>
      <description>&lt;P&gt;I currently have a UF that is sending data to two different Splunk environment.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[monitor:///data/folder1/]
index=main
sourcetype=applog1
_TCP_ROUTING = SplunkTEST
crcSalt = &amp;lt;SOURCE&amp;gt; 

[monitor:///data/folder2/]
index=main
sourcetype=applog2
_TCP_ROUTING = SplunkPROD
crcSalt = &amp;lt;SOURCE&amp;gt; &lt;/LI-CODE&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;When i run the following oneshot command it sends it to my SplunkPROD. How do i ensure it sends to SplunkTEST? Is there a setting for&amp;nbsp;_TCP_ROUTING&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;/opt/splunkforwarder/bin/splunk add oneshot /data/data/folder1/app1.log -index main -sourcetype "applog1"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 15:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591303#M103570</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2022-03-30T15:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a parmeter for _TCP_ROUTING when using splunk oneshot?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591353#M103577</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;oneshot&lt;/FONT&gt; command does not have a _TCP_ROUTING option.&lt;/P&gt;&lt;P&gt;I'm not sure the &lt;FONT face="courier new,courier"&gt;oneshot&lt;/FONT&gt; command honors inputs.conf settings since it's not a configured input.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 20:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591353#M103577</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-29T20:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a parmeter for _TCP_ROUTING when using splunk oneshot?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591501#M103590</link>
      <description>&lt;P&gt;how does it determine where to send the oneshot to in this scenario? I've checked both environment and it only sends the&amp;nbsp;&lt;SPAN&gt;SplunkPROD and not both.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 13:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591501#M103590</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2022-03-30T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a parmeter for _TCP_ROUTING when using splunk oneshot?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591534#M103594</link>
      <description>&lt;P&gt;Splunk does not create &lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; stanza when using &lt;STRONG&gt;one shot&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;If this is something you need regularly and you are okay to move from UF to &lt;STRONG&gt;Heavy Forwarder&lt;/STRONG&gt;, then you can use &lt;STRONG&gt;TCP Routing from&lt;/STRONG&gt; &lt;STRONG&gt;props.conf and transforms.conf&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;(This will not work on Universal Forwarder)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf
[applog1]
TRANSFORMS-routing=my_transforms_routing

transforms.conf
[my_transforms_routing]
REGEX=.*
DEST_KEY=_TCP_ROUTING
FORMAT=SplunkTEST&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please read the reference -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Forwarding/Routeandfilterdatad" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note - This will apply on all the data under&amp;nbsp;&lt;SPAN&gt;applog1 sourcetype.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&amp;nbsp; If it resolves your issue, consider accepting and upvoting!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 14:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591534#M103594</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-03-30T14:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a parmeter for _TCP_ROUTING when using splunk oneshot?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591571#M103598</link>
      <description>&lt;P&gt;The destination will be specified in the outputs.conf file.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 16:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-parmeter-for-TCP-ROUTING-when-using-splunk-oneshot/m-p/591571#M103598</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-30T16:41:50Z</dc:date>
    </item>
  </channel>
</rss>

