<?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: Add a network input using the CLI in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Add-a-network-input-using-the-CLI/m-p/673612#M18290</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249714"&gt;@SplunkExplorer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right. Looks like the CLI got no app context parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the doc link -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports#Add_a_network_input_using_the_CLI" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports#Add_a_network_input_using_the_CLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Command Command syntax Action&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;add&lt;/TD&gt;&lt;TD&gt;add tcp|udp &amp;lt;port&amp;gt; [-parameter value] ...&lt;/TD&gt;&lt;TD&gt;Add inputs from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;port&amp;gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;edit&lt;/TD&gt;&lt;TD&gt;edit tcp|udp &amp;lt;port&amp;gt; [-parameter value] ...&lt;/TD&gt;&lt;TD&gt;Edit a previously added input for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;port&amp;gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;remove&lt;/TD&gt;&lt;TD&gt;remove tcp|udp &amp;lt;port&amp;gt;&lt;/TD&gt;&lt;TD&gt;Remove a previously added data input.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;list&lt;/TD&gt;&lt;TD&gt;list tcp|udp [&amp;lt;port&amp;gt;]&lt;/TD&gt;&lt;TD&gt;List the currently configured monitor.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;port&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the port number on which to listen for data. The user you run the Splunk platform as must have access to this port.&lt;/P&gt;&lt;P&gt;You can modify the configuration of each input by setting any of these optional parameters:&lt;/P&gt;&lt;P&gt;Parameter Description&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sourcetype&lt;/TD&gt;&lt;TD&gt;Provide a sourcetype field value for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;index&lt;/TD&gt;&lt;TD&gt;Provide the destination index for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;hostname&lt;/TD&gt;&lt;TD&gt;Provide a host name to set as the host field value for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;remotehost&lt;/TD&gt;&lt;TD&gt;Provide an IP address to exclusively accept data from.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;resolvehost&lt;/TD&gt;&lt;TD&gt;Set to true or false (T | F). Default is false. Set to true to use DNS to set the host field value for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;restrictToHost&lt;/TD&gt;&lt;TD&gt;Provide a host name or IP address to accept connections only from the specified host or IP address.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no options to specify the app's context. the CLI and web gui update methods got their limitations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the config file editing is the ultimate method which got all of its features and syntax.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sekar&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2024 09:52:58 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2024-01-09T09:52:58Z</dc:date>
    <item>
      <title>Add a network input using the CLI</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Add-a-network-input-using-the-CLI/m-p/673610#M18289</link>
      <description>&lt;P&gt;Hi Splunkers, I'm performing some test on my test environment and I'm curious about observed behavior.&lt;/P&gt;&lt;P&gt;I want to add some network inputs, so tcp and udp ones, to my env.&lt;BR /&gt;I found easily on doc how to achieve this:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Data/Monitornetworkports" target="_self"&gt;Monitornetworkports&lt;/A&gt;&amp;nbsp;and it works fine, with no issues. Inputs are correctly added to my Splunk. I can confirm this with no problem on both web GUI and from CLI using btool.&lt;/P&gt;&lt;P&gt;My wonder is: if I use the command in the above link, inputs are added on inputs.conf located in SPLUNK_HOME\etc\apps\search\local. For example, if I use:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk add tcp 3514 -index network -soucetype checkpoint&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then, I digit&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk btool inputs list --debug | findstr 3514&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C:\Program Files\Splunk\etc\apps\search\local\inputs.conf     [tcp://3514]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, checking manually the file, confs related to my add command are exactly on it.&lt;BR /&gt;So, I assume that search is the default app if no additional parameter are provided.&lt;BR /&gt;Now, I know well that if I want edit another inputs.conf file, I can simply manually edit it.&lt;BR /&gt;But what about if I want edit another inputs.conf from CLI?&lt;BR /&gt;In other words: I want to know if I can use the &lt;STRONG&gt;splunk add&lt;/STRONG&gt; command and specify which inputs.conf file modify. Is it possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Add-a-network-input-using-the-CLI/m-p/673610#M18289</guid>
      <dc:creator>SplunkExplorer</dc:creator>
      <dc:date>2024-01-09T09:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add a network input using the CLI</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Add-a-network-input-using-the-CLI/m-p/673612#M18290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249714"&gt;@SplunkExplorer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right. Looks like the CLI got no app context parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the doc link -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports#Add_a_network_input_using_the_CLI" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports#Add_a_network_input_using_the_CLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Command Command syntax Action&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;add&lt;/TD&gt;&lt;TD&gt;add tcp|udp &amp;lt;port&amp;gt; [-parameter value] ...&lt;/TD&gt;&lt;TD&gt;Add inputs from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;port&amp;gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;edit&lt;/TD&gt;&lt;TD&gt;edit tcp|udp &amp;lt;port&amp;gt; [-parameter value] ...&lt;/TD&gt;&lt;TD&gt;Edit a previously added input for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;port&amp;gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;remove&lt;/TD&gt;&lt;TD&gt;remove tcp|udp &amp;lt;port&amp;gt;&lt;/TD&gt;&lt;TD&gt;Remove a previously added data input.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;list&lt;/TD&gt;&lt;TD&gt;list tcp|udp [&amp;lt;port&amp;gt;]&lt;/TD&gt;&lt;TD&gt;List the currently configured monitor.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;port&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the port number on which to listen for data. The user you run the Splunk platform as must have access to this port.&lt;/P&gt;&lt;P&gt;You can modify the configuration of each input by setting any of these optional parameters:&lt;/P&gt;&lt;P&gt;Parameter Description&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sourcetype&lt;/TD&gt;&lt;TD&gt;Provide a sourcetype field value for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;index&lt;/TD&gt;&lt;TD&gt;Provide the destination index for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;hostname&lt;/TD&gt;&lt;TD&gt;Provide a host name to set as the host field value for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;remotehost&lt;/TD&gt;&lt;TD&gt;Provide an IP address to exclusively accept data from.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;resolvehost&lt;/TD&gt;&lt;TD&gt;Set to true or false (T | F). Default is false. Set to true to use DNS to set the host field value for events from the input source.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;restrictToHost&lt;/TD&gt;&lt;TD&gt;Provide a host name or IP address to accept connections only from the specified host or IP address.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no options to specify the app's context. the CLI and web gui update methods got their limitations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the config file editing is the ultimate method which got all of its features and syntax.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sekar&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Add-a-network-input-using-the-CLI/m-p/673612#M18290</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-01-09T09:52:58Z</dc:date>
    </item>
  </channel>
</rss>

