<?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: Why is my custom sourcetype configuration not extracting the host field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211397#M61841</link>
    <description>&lt;P&gt;Didn't realize this was windows indexer, I may definitely be worth checking with support . . ., this sort of stuff just seems to work on linux splunk servers.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2015 20:13:42 GMT</pubDate>
    <dc:creator>tskinnerivsec</dc:creator>
    <dc:date>2015-09-01T20:13:42Z</dc:date>
    <item>
      <title>Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211389#M61833</link>
      <description>&lt;P&gt;I have a file with data similar to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015:09:01:15:00:00.005 sl200services007 3:INFO SERVER NOFMT 4327963992431091696812 Saving to client_request_map table
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a custom sourcetype called services:client, and I have set up an index-time extracttion for the host field. &lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\temp\sample_logs2.txt]
disabled = false
index = test
sourcetype = services:client
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[services:client]
MAX_TIMESTAMP_LOOKAHEAD = 30
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Custom
description = trans services
pulldown_type = true
TRANSFORMS-host = hostoverride2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hostoverride2]
DEST_KEY = MetaData:Host
REGEX = ^[^\s]+\s([^\s]+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For testing, I stop splunk, append data to the monitored file, and I start splunk. Splunk is indexing the data fine, but the host field isn't set based on the regex result. I tested the regex on &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;, and I followed the override syntax from &lt;A href="http://blogs.splunk.com/2008/04/16/overriding-default-syslog-host-extraction/"&gt;http://blogs.splunk.com/2008/04/16/overriding-default-syslog-host-extraction/&lt;/A&gt;. Any thoughts on why this isn't working to set the hostname?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 18:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211389#M61833</guid>
      <dc:creator>lisaac</dc:creator>
      <dc:date>2015-09-01T18:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211390#M61834</link>
      <description>&lt;P&gt;Since you are trying to over write an indexed field, you probably need to catch it on the indexer at that source level. So try something like this in your props.conf:&lt;/P&gt;

&lt;P&gt;[source::…sample_logs2.txt]&lt;BR /&gt;
TRANSFORMS-host = hostoverride2&lt;/P&gt;

&lt;P&gt;instead of :&lt;/P&gt;

&lt;P&gt;[services:client]&lt;BR /&gt;
TRANSFORMS-host = hostoverride2&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 19:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211390#M61834</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2015-09-01T19:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211391#M61835</link>
      <description>&lt;P&gt;Still no go, I removed transforms reference from the sourcetype and added the source based on the example. The ...sample_logs2.txt will catch any file ending in sample_logs2.txt. &lt;/P&gt;

&lt;P&gt;My props.conf value has the following:&lt;/P&gt;

&lt;P&gt;[cybs:trans_svs]&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 30&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
category = Custom&lt;BR /&gt;
description = cybs trans services&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;[source::...sample_logs2.txt]&lt;BR /&gt;
TRANSFORMS-host = hostoverride2&lt;/P&gt;

&lt;P&gt;My splunk instance is a single windows 7 host running 6.2.5. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211391#M61835</guid>
      <dc:creator>lisaac</dc:creator>
      <dc:date>2020-09-29T07:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211392#M61836</link>
      <description>&lt;P&gt;Is that props.conf and transforms.conf deployed on your indexers? (These should be on your indexers, or heavy forwarders, if data is being sent through them first. )&lt;/P&gt;

&lt;P&gt;If so, you may also want to run this on your indexers to verify what props stanzas are being applied to your indexers:&lt;/P&gt;

&lt;P&gt;./splunk btool list props&lt;/P&gt;

&lt;P&gt;you can pipe this to a file and review it to verify what the indexer thinks the total applied configuration is.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 19:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211392#M61836</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2015-09-01T19:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211393#M61837</link>
      <description>&lt;P&gt;Try this in transforms.conf instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hostoverride2]
REGEX = ^[^\s]+\s([^\s]+)
FORMAT = host::$1
DEST_KEY = MetaData:Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not certain the order maters but it's worth a shot.  Everything else looks good to me.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211393#M61837</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-09-01T20:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211394#M61838</link>
      <description>&lt;P&gt;I think a ticket with support might be in order, or a test on a Linux host vs. Windows. Debug output shows the source correctly settting the transforms-host correctly. &lt;/P&gt;

&lt;P&gt;C:\Program Files\Splunk\etc\apps\search\local\props.conf                      [source::...sample_logs2.txt]&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         ANNOTATE_PUNCT = True&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         AUTO_KV_JSON = true&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         BREAK_ONLY_BEFORE = &lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         BREAK_ONLY_BEFORE_DATE = True&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         CHARSET = AUTO&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         DATETIME_CONFIG = \etc\datetime.xml&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         HEADER_MODE = &lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         LEARN_SOURCETYPE = true&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         LINE_BREAKER_LOOKBEHIND = 100&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MAX_DAYS_AGO = 2000&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MAX_DAYS_HENCE = 2&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MAX_DIFF_SECS_AGO = 3600&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MAX_DIFF_SECS_HENCE = 604800&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MAX_EVENTS = 256&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MAX_TIMESTAMP_LOOKAHEAD = 128&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MUST_BREAK_AFTER = &lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MUST_NOT_BREAK_AFTER = &lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         MUST_NOT_BREAK_BEFORE = &lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SEGMENTATION = indexing&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SEGMENTATION-all = full&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SEGMENTATION-inner = inner&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SEGMENTATION-outer = outer&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SEGMENTATION-raw = none&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SEGMENTATION-standard = standard&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         SHOULD_LINEMERGE = True&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         TRANSFORMS = &lt;BR /&gt;
C:\Program Files\Splunk\etc\apps\search\local\props.conf                      TRANSFORMS-host = hostoverride2&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         TRUNCATE = 10000&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         detect_trailing_nulls = auto&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         maxDist = 100&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         priority = &lt;BR /&gt;
C:\Program Files\Splunk\etc\system\default\props.conf                         sourcetype = &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211394#M61838</guid>
      <dc:creator>lisaac</dc:creator>
      <dc:date>2020-09-29T07:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211395#M61839</link>
      <description>&lt;P&gt;Also, are both the props.conf and transforms.conf contained in the same configuration app with no weird default.meta stanzas applied?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211395#M61839</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2015-09-01T20:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211396#M61840</link>
      <description>&lt;P&gt;I have a file on the indexer, since this is just a test situation. This is from props and transforms on the single test indexer. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211396#M61840</guid>
      <dc:creator>lisaac</dc:creator>
      <dc:date>2015-09-01T20:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211397#M61841</link>
      <description>&lt;P&gt;Didn't realize this was windows indexer, I may definitely be worth checking with support . . ., this sort of stuff just seems to work on linux splunk servers.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211397#M61841</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2015-09-01T20:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211398#M61842</link>
      <description>&lt;P&gt;Usually yes, but they dont have to be in the same app.&lt;/P&gt;

&lt;P&gt;I tend to do apps like this&lt;/P&gt;

&lt;P&gt;/ta-appnameInputs/&lt;BR /&gt;
/ta-appnameProps/&lt;BR /&gt;
/ta-appnameTransforms/&lt;/P&gt;

&lt;P&gt;which is a bit overkill and usually i combine props &amp;amp; transforms into just "props".  Reason being inputs can go on forwarders, props and transforms can be on indexers, or heavy forwarders, some usage on universal forwarders, etc.  I do this in distributed environments that employ a deployment server.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211398#M61842</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-09-01T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211399#M61843</link>
      <description>&lt;P&gt;You could go crazy and have both search and index time transformations in different apps, because search configs should only be on search heads and index time configs should only be on ingestion.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211399#M61843</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-09-01T20:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211400#M61844</link>
      <description>&lt;P&gt;you might also try to change some small details...&lt;/P&gt;

&lt;P&gt;like TRANSFORMS-host to TRANSFORMS-customhost&lt;/P&gt;

&lt;P&gt;to rule out any "internal" stuffs related to "host".&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211400#M61844</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-09-01T20:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211401#M61845</link>
      <description>&lt;P&gt;also look for errors under index=_internal source=splunkd&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211401#M61845</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-09-01T20:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211402#M61846</link>
      <description>&lt;P&gt;I tried the suggestion to no avail. &lt;/P&gt;

&lt;P&gt;[hostoverride2]&lt;BR /&gt;
REGEX = ^[^\s]+\s([^\s]+)&lt;BR /&gt;
FORMAT = host::$1&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211402#M61846</guid>
      <dc:creator>lisaac</dc:creator>
      <dc:date>2015-09-01T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my custom sourcetype configuration not extracting the host field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211403#M61847</link>
      <description>&lt;P&gt;I like the idea of changing the TRANSFORMS name, I have definitely gotten bitten in the past buy using reserved words in stanza names before and "host" has a high probability of that.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-custom-sourcetype-configuration-not-extracting-the/m-p/211403#M61847</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2015-09-01T20:39:59Z</dc:date>
    </item>
  </channel>
</rss>

