<?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 can I define customize sourcetype that I write logs in _internal? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422601#M74234</link>
    <description>&lt;P&gt;My custom script writes log in /opt/splunk/var/log/splunk/script.log.&lt;/P&gt;

&lt;P&gt;I want the log to be indexed in _internal but have to define a customized sourcetype for the log to write in a proper linebreak. Please  let me know how to define sourcetype for the _internal data.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 15:36:36 GMT</pubDate>
    <dc:creator>sathiyasun</dc:creator>
    <dc:date>2018-08-21T15:36:36Z</dc:date>
    <item>
      <title>How can I define customize sourcetype that I write logs in _internal?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422601#M74234</link>
      <description>&lt;P&gt;My custom script writes log in /opt/splunk/var/log/splunk/script.log.&lt;/P&gt;

&lt;P&gt;I want the log to be indexed in _internal but have to define a customized sourcetype for the log to write in a proper linebreak. Please  let me know how to define sourcetype for the _internal data.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422601#M74234</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2018-08-21T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I define customize sourcetype that I write logs in _internal?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422602#M74235</link>
      <description>&lt;P&gt;In your inputs.conf file, add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/splunk/var/log/splunk/script.log]
sourcetype = foo
index = _internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your props,conf file, add the following.  Adjust the values to match your data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[foo]
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = ^
TIME_FORMAT = %m/%d/%Y %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 30
TRUNCATE = 10000
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Aug 2018 16:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422602#M74235</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-08-21T16:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I define customize sourcetype that I write logs in _internal?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422603#M74236</link>
      <description>&lt;P&gt;Thanks it works!!!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-define-customize-sourcetype-that-I-write-logs-in/m-p/422603#M74236</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2018-08-22T14:48:07Z</dc:date>
    </item>
  </channel>
</rss>

