<?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 how to add Sourcetype Cli command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Sourcetype-Cli-command/m-p/461111#M191367</link>
    <description>&lt;P&gt;hi &lt;BR /&gt;
i would like add some sourcetype.&lt;BR /&gt;
Adding thoungh Web Browser is easy, &lt;BR /&gt;
just click create sourcetype button and not need splunk restart&lt;BR /&gt;
I found a cli command to add a sourcetype, but I couldn't find it.&lt;/P&gt;

&lt;P&gt;One way i found&lt;BR /&gt;
The sourcetype is written directly to the props.conf file.&lt;BR /&gt;
but it's need splunk restart&lt;/P&gt;

&lt;P&gt;I'm writing an auto define script for some log files&lt;BR /&gt;
so i can't use restart splunk &lt;/P&gt;

&lt;P&gt;i want not need splunk restart &amp;amp; cli command like a web browser&lt;/P&gt;

&lt;P&gt;thk~&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 00:41:24 GMT</pubDate>
    <dc:creator>parrotgw</dc:creator>
    <dc:date>2019-10-16T00:41:24Z</dc:date>
    <item>
      <title>how to add Sourcetype Cli command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Sourcetype-Cli-command/m-p/461111#M191367</link>
      <description>&lt;P&gt;hi &lt;BR /&gt;
i would like add some sourcetype.&lt;BR /&gt;
Adding thoungh Web Browser is easy, &lt;BR /&gt;
just click create sourcetype button and not need splunk restart&lt;BR /&gt;
I found a cli command to add a sourcetype, but I couldn't find it.&lt;/P&gt;

&lt;P&gt;One way i found&lt;BR /&gt;
The sourcetype is written directly to the props.conf file.&lt;BR /&gt;
but it's need splunk restart&lt;/P&gt;

&lt;P&gt;I'm writing an auto define script for some log files&lt;BR /&gt;
so i can't use restart splunk &lt;/P&gt;

&lt;P&gt;i want not need splunk restart &amp;amp; cli command like a web browser&lt;/P&gt;

&lt;P&gt;thk~&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 00:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Sourcetype-Cli-command/m-p/461111#M191367</guid>
      <dc:creator>parrotgw</dc:creator>
      <dc:date>2019-10-16T00:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to add Sourcetype Cli command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Sourcetype-Cli-command/m-p/461112#M191368</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;You need to take a look into below documentation as what changes in props.conf requires restart . Any changes to index time field extraction and time stamp properties requires a restart of splunkd process. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Configurationfilechangesthatrequirerestart"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Configurationfilechangesthatrequirerestart&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regarding creating props from command line, this is generally pushed from  Cluster master to Indexers or from Deployment server to HWF in distributed environment. &lt;/P&gt;

&lt;P&gt;I doubt we have an option to create  sourcetype from command line and don't see either in the below link.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/Admin/CLIadmincommands"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.2/Admin/CLIadmincommands&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 11:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Sourcetype-Cli-command/m-p/461112#M191368</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2019-10-16T11:57:54Z</dc:date>
    </item>
  </channel>
</rss>

