<?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 do I test sourcetyping before I index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-test-sourcetyping-before-I-index/m-p/75721#M15455</link>
    <description>&lt;P&gt;How can I see how Splunk is going to handle a particular dataset BEFORE I actually input?
For example: If I monitor a log what sourcetype is splunk going to tag the events with?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2011 23:22:44 GMT</pubDate>
    <dc:creator>rroberts</dc:creator>
    <dc:date>2011-04-06T23:22:44Z</dc:date>
    <item>
      <title>How do I test sourcetyping before I index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-test-sourcetyping-before-I-index/m-p/75721#M15455</link>
      <description>&lt;P&gt;How can I see how Splunk is going to handle a particular dataset BEFORE I actually input?
For example: If I monitor a log what sourcetype is splunk going to tag the events with?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 23:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-test-sourcetyping-before-I-index/m-p/75721#M15455</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2011-04-06T23:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I test sourcetyping before I index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-test-sourcetyping-before-I-index/m-p/75722#M15456</link>
      <description>&lt;P&gt;Check the CLI test.
From $SPLUNK_HOME/bin
Check help for test...
./splunk test help
./splunk test sourcetype &lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;./splunk test sourcetype /opt/tradelog/trade_entries.log&lt;/P&gt;

&lt;P&gt;PROPERTIES OF /opt/log/tradelog/trade_entries.log&lt;BR /&gt;
    Attr:ANNOTATE_PUNCT True&lt;BR /&gt;
    Attr:BREAK_ONLY_BEFORE&lt;BR /&gt;
    Attr:BREAK_ONLY_BEFORE_DATE True&lt;BR /&gt;
    Attr:CHARSET    UTF-8&lt;BR /&gt;
    Attr:DATETIME_CONFIG    /etc/datetime.xml&lt;BR /&gt;
    Attr:HEADER_MODE&lt;BR /&gt;
    Attr:LEARN_SOURCETYPE   true&lt;BR /&gt;
    Attr:LINE_BREAKER_LOOKBEHIND    100&lt;BR /&gt;
    Attr:MAX_DAYS_AGO   2000&lt;BR /&gt;
    Attr:MAX_DAYS_HENCE 2&lt;BR /&gt;
    Attr:MAX_DIFF_SECS_AGO  3600&lt;BR /&gt;
    Attr:MAX_DIFF_SECS_HENCE    604800&lt;BR /&gt;
    Attr:MAX_EVENTS 256&lt;BR /&gt;
    Attr:MAX_TIMESTAMP_LOOKAHEAD    44&lt;BR /&gt;
    Attr:MUST_BREAK_AFTER&lt;BR /&gt;
    Attr:MUST_NOT_BREAK_AFTER&lt;BR /&gt;
    Attr:MUST_NOT_BREAK_BEFORE&lt;BR /&gt;
    Attr:SEGMENTATION   indexing&lt;BR /&gt;
    Attr:SEGMENTATION-all   full&lt;BR /&gt;
    Attr:SEGMENTATION-inner inner&lt;BR /&gt;
    Attr:SEGMENTATION-outer outer&lt;BR /&gt;
    Attr:SEGMENTATION-raw   none&lt;BR /&gt;
    Attr:SEGMENTATION-standard  standard&lt;BR /&gt;
    Attr:SHOULD_LINEMERGE   False&lt;BR /&gt;
    Attr:TRANSFORMS 
    Attr:TRUNCATE   10000&lt;BR /&gt;
    Attr:is_valid   True&lt;BR /&gt;
    Attr:maxDist    100&lt;BR /&gt;
    Attr:sourcetype trade_entries-2&lt;/P&gt;

&lt;P&gt;Note attributes including sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 23:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-test-sourcetyping-before-I-index/m-p/75722#M15456</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2011-04-06T23:26:27Z</dc:date>
    </item>
  </channel>
</rss>

