<?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: Best practice on Index and TCP Input creation by .spl application package install in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310820#M4511</link>
    <description>&lt;P&gt;I guess yes, but please indicate the "first sentence"&lt;/P&gt;

&lt;P&gt;thanks and regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 11:33:50 GMT</pubDate>
    <dc:creator>altink</dc:creator>
    <dc:date>2017-08-31T11:33:50Z</dc:date>
    <item>
      <title>Best practices on Index and TCP Input creation by .spl application package install?</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310816#M4507</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;
&lt;P&gt;working with app deployment and installing, and after reading Dev articles &lt;BR /&gt;SP-CAAAEMY &lt;BR /&gt;SP-CAAAE3H&lt;BR /&gt;... and all related&lt;/P&gt;
&lt;P&gt;noticed a few things:&lt;/P&gt;
&lt;P&gt;the app_name.spl package - installing in a new clean environment - does create both:&lt;BR /&gt;1. a new index&lt;BR /&gt;2. a new TCP/Input (on a certain port xxxxx - my app makes use of it to get data input )&lt;/P&gt;
&lt;P&gt;while the above is great and helps big, I wander if it is invasive a bit, especially:&lt;/P&gt;
&lt;P&gt;the second part - TCP input creation on the client's Splunk server. That xxxxx port is a parameter in my solution (software that will feed the App) and can be set to anything.&lt;/P&gt;
&lt;P&gt;But also the index creation, as in the "App Certification criteria", article SP-CAAAE3H on dev.splunk, &lt;BR /&gt;under "Indexes.conf standards", it is said (quoted):&lt;BR /&gt;"Check that the app does not create indexes."&lt;BR /&gt;Does this excludes app_name.spl install ? I guess it should be yes, in the sense that index creation is forbidden &lt;BR /&gt;during normal app operations, while allowed to create own index[s] during install.&lt;/P&gt;
&lt;P&gt;So, my questions in this case would be:&lt;BR /&gt;Q1. Is Best practice to Create index on .spl install, or do it not (create manually)?&lt;/P&gt;
&lt;P&gt;Q2. Is Best practice to Create TCP input on .spl install, or do it not (create manually)?&lt;/P&gt;
&lt;P&gt;Q3. what is the relation of the two above regarding Splunk App Certification process?&lt;/P&gt;
&lt;P&gt;thank you very much&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 23:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310816#M4507</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2020-06-15T23:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310817#M4508</link>
      <description>&lt;P&gt;Best practice and I believe a requirement now is that you don't create ANY resource-consuming KOs (e.g. index, input, etc.) you supply a &lt;CODE&gt;setup.xml&lt;/CODE&gt; that the user should be dropped into on first run and he will &lt;EM&gt;choose&lt;/EM&gt; (or not) to create that stuff.&lt;/P&gt;

&lt;P&gt;Best practice for TCP inputs is to NOT DO IT AT ALL.  This should be done to a syslog HF and then Splunk can pick it up from disk where syslog writes it.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 00:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310817#M4508</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-31T00:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310818#M4509</link>
      <description>&lt;P&gt;Did you mean "indexes" in the first sentence rather than "inputs"?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 02:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310818#M4509</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-08-31T02:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310819#M4510</link>
      <description>&lt;P&gt;Thank you very much Mr. Woodcock&lt;/P&gt;

&lt;P&gt;I am forced to use the TCP Input - at least for now.&lt;/P&gt;

&lt;P&gt;So from your answer I got the first rule:&lt;BR /&gt;
No TCP Input creation on a app_name.spl install!&lt;/P&gt;

&lt;P&gt;But what about index creation on the same (app_name.spl install)?&lt;BR /&gt;
Would that be considered invasive ?&lt;BR /&gt;
Be a problem in certification?&lt;/P&gt;

&lt;P&gt;thank you very much,&lt;BR /&gt;
best regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 11:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310819#M4510</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2017-08-31T11:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310820#M4511</link>
      <description>&lt;P&gt;I guess yes, but please indicate the "first sentence"&lt;/P&gt;

&lt;P&gt;thanks and regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 11:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310820#M4511</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2017-08-31T11:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310821#M4512</link>
      <description>&lt;P&gt;Fixed it, yes.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 12:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310821#M4512</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-31T12:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310822#M4513</link>
      <description>&lt;P&gt;Are you using the &lt;CODE&gt;Add-on Builder&lt;/CODE&gt;?&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/2962/"&gt;https://splunkbase.splunk.com/app/2962/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 12:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310822#M4513</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-31T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice on Index and TCP Input creation by .spl application package install</title>
      <link>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310823#M4514</link>
      <description>&lt;P&gt;No Sir&lt;/P&gt;

&lt;P&gt;no third parties &lt;BR /&gt;
only Simple XML &lt;/P&gt;

&lt;P&gt;my app is meant to be this way - at least in its initial version.&lt;/P&gt;

&lt;P&gt;I think I will satisfy myself with a:&lt;BR /&gt;
1. Manual Index install&lt;BR /&gt;
2. Manual TCP Input creation&lt;/P&gt;

&lt;P&gt;I might also look to implement both in a setup.xml &lt;/P&gt;

&lt;P&gt;Let me ask you one more question please.&lt;BR /&gt;
I did the following test.&lt;BR /&gt;
1. Installed app_name.spl (with built-in index creation)&lt;BR /&gt;
2. populated the app with some data and confirmed data presence&lt;BR /&gt;
3. delete the app by stop-splunk and delete app-dir in /etc/app&lt;BR /&gt;
4. after splunk restart I noticed that the index was not present anymore on the GUI&lt;BR /&gt;
5. installed the same app_name.spl again. &lt;BR /&gt;
 Nothing failed, kind of "index xxxxx already exists" - very good!&lt;/P&gt;

&lt;P&gt;after this I noticed in the app that the "old" index data were preserved and during&lt;BR /&gt;
the install the existing index's data were not erased by a new empty index.&lt;BR /&gt;
This is very good too, but I need to know:&lt;/P&gt;

&lt;P&gt;Is this the always behavior of the .spl install ?&lt;BR /&gt;
If yes  - will this continue in the future&lt;/P&gt;

&lt;P&gt;otherwise I think I will go for a manual index create/setup too&lt;/P&gt;

&lt;P&gt;thanks and best regards&lt;BR /&gt;
Altin&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Best-practices-on-Index-and-TCP-Input-creation-by-spl/m-p/310823#M4514</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2020-09-29T15:35:39Z</dc:date>
    </item>
  </channel>
</rss>

