<?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: listing properties for a pre-trained sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126540#M26051</link>
    <description>&lt;P&gt;You can use &lt;CODE&gt;btool&lt;/CODE&gt;, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ $SPLUNK_HOME/bin/splunk cmd btool props list access_combined_wcookie
[access_combined_wcookie]
ANNOTATE_PUNCT = True
BREAK_ONLY_BEFORE =
BREAK_ONLY_BEFORE_DATE = True
CHARSET = AUTO
DATETIME_CONFIG = \etc\datetime.xml
HEADER_MODE =
LEARN_SOURCETYPE = true
LINE_BREAKER_LOOKBEHIND = 100
MAX_DAYS_AGO = 2000
MAX_DAYS_HENCE = 2
MAX_DIFF_SECS_AGO = 3600
MAX_DIFF_SECS_HENCE = 604800
MAX_EVENTS = 256
MAX_TIMESTAMP_LOOKAHEAD = 128
MUST_BREAK_AFTER =
MUST_NOT_BREAK_AFTER =
MUST_NOT_BREAK_BEFORE =
REPORT-access = access-extractions
SEGMENTATION = indexing
SEGMENTATION-all = full
SEGMENTATION-inner = inner
SEGMENTATION-outer = outer
SEGMENTATION-raw = none
SEGMENTATION-standard = standard
SHOULD_LINEMERGE = False
TIME_PREFIX = \[
TRANSFORMS =
TRUNCATE = 10000
detect_trailing_nulls = auto
maxDist = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Same with looking at the &lt;CODE&gt;REPORT-access = access-extractions&lt;/CODE&gt; config mentioned above:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ $SPLUNK_HOME/bin/splunk cmd btool transforms list access-extractions
[access-extractions]
CAN_OPTIMIZE = True
CLEAN_KEYS = True
DEFAULT_VALUE =
DEST_KEY =
FORMAT =
KEEP_EMPTY_VALS = False
LOOKAHEAD = 4096
MV_ADD = False
REGEX = ^[[nspaces:clientip]]\s++[[nspaces:ident]]\s++[[nspaces:user]]\s++[[sbstring:req_time]]\s++[[access-request]]\s++[[nspaces:status]]\s++[[nspaces:bytes]](?:\s++"(?&amp;lt;referer&amp;gt;[[bc_domain:referer_]]?+[^"]*+)"(?:\s++[[qstring:useragent]](?:\s++[[qstring:cookie]])?+)?+)?[[all:other]]
SOURCE_KEY = _raw
WRITE_META = False
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Jul 2014 15:33:28 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-07-01T15:33:28Z</dc:date>
    <item>
      <title>listing properties for a pre-trained sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126539#M26050</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is there a way to list the properties for a pre-trained sourcetypes?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 15:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126539#M26050</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-07-01T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: listing properties for a pre-trained sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126540#M26051</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;btool&lt;/CODE&gt;, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ $SPLUNK_HOME/bin/splunk cmd btool props list access_combined_wcookie
[access_combined_wcookie]
ANNOTATE_PUNCT = True
BREAK_ONLY_BEFORE =
BREAK_ONLY_BEFORE_DATE = True
CHARSET = AUTO
DATETIME_CONFIG = \etc\datetime.xml
HEADER_MODE =
LEARN_SOURCETYPE = true
LINE_BREAKER_LOOKBEHIND = 100
MAX_DAYS_AGO = 2000
MAX_DAYS_HENCE = 2
MAX_DIFF_SECS_AGO = 3600
MAX_DIFF_SECS_HENCE = 604800
MAX_EVENTS = 256
MAX_TIMESTAMP_LOOKAHEAD = 128
MUST_BREAK_AFTER =
MUST_NOT_BREAK_AFTER =
MUST_NOT_BREAK_BEFORE =
REPORT-access = access-extractions
SEGMENTATION = indexing
SEGMENTATION-all = full
SEGMENTATION-inner = inner
SEGMENTATION-outer = outer
SEGMENTATION-raw = none
SEGMENTATION-standard = standard
SHOULD_LINEMERGE = False
TIME_PREFIX = \[
TRANSFORMS =
TRUNCATE = 10000
detect_trailing_nulls = auto
maxDist = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Same with looking at the &lt;CODE&gt;REPORT-access = access-extractions&lt;/CODE&gt; config mentioned above:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ $SPLUNK_HOME/bin/splunk cmd btool transforms list access-extractions
[access-extractions]
CAN_OPTIMIZE = True
CLEAN_KEYS = True
DEFAULT_VALUE =
DEST_KEY =
FORMAT =
KEEP_EMPTY_VALS = False
LOOKAHEAD = 4096
MV_ADD = False
REGEX = ^[[nspaces:clientip]]\s++[[nspaces:ident]]\s++[[nspaces:user]]\s++[[sbstring:req_time]]\s++[[access-request]]\s++[[nspaces:status]]\s++[[nspaces:bytes]](?:\s++"(?&amp;lt;referer&amp;gt;[[bc_domain:referer_]]?+[^"]*+)"(?:\s++[[qstring:useragent]](?:\s++[[qstring:cookie]])?+)?+)?[[all:other]]
SOURCE_KEY = _raw
WRITE_META = False
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Jul 2014 15:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126540#M26051</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-01T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: listing properties for a pre-trained sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126541#M26052</link>
      <description>&lt;P&gt;Sooooooooooooo, let's take this to the next step.  I am teaching some people how to input data into Splunk.  A lot of my requests are syslog, but we don't actually use the syslog sourcetype, because we have so many and want the ability to seperate them.  Could I use this command and use the majority of these as a template, to give to my trainees?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 21:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126541#M26052</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-07-01T21:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: listing properties for a pre-trained sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126542#M26053</link>
      <description>&lt;P&gt;Newbies may be confused by this output because it list all the values, including default ones. If you have a sourcetype in props.conf that only has three keys set, btool will still list all of them.&lt;BR /&gt;
Set the debug flag in btool and you'll see the path for each setting, making it fairly obvious which is default and which isn't.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 07:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/listing-properties-for-a-pre-trained-sourcetype/m-p/126542#M26053</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-02T07:40:13Z</dc:date>
    </item>
  </channel>
</rss>

