<?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: Metadata will not rewrite. Why is Splunk ignoring my configurations? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366971#M66720</link>
    <description>&lt;P&gt;Maybe move the props and transforms to the local directory in your app to bump it up the precedence list?? If I understand you correctly, that this config is working on another host, thats what I'd check..&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Mar 2017 00:24:48 GMT</pubDate>
    <dc:creator>mattymo</dc:creator>
    <dc:date>2017-03-18T00:24:48Z</dc:date>
    <item>
      <title>Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366970#M66719</link>
      <description>&lt;P&gt;I am trying [once again] to rewrite metadata, host, source and source type from fields in my event.&lt;/P&gt;

&lt;P&gt;I have an event like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   {    [-] 
         datasource:     otherport  
         ident:  root   
         message:    This is a test 
         orighost:   play   
    }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: My initial source type is fluentd when the event comes in.&lt;/P&gt;

&lt;P&gt;I created an app and put my config in $SPLUNK_HOME/apps/fluentd/default directory and have a props and a transforms that don't do anything, yet they work perfectly on another host. The data is coming in through a syslog cp port 9999, so initial source is tcp:9999.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fluentd]
SHOULD_LINEMERGE = false
INDEXED_EXTRACTIONS = json
TRANSFORMS-updateMetaData = autohost,, autosource, autoparse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[autosource]
SOURCE_KEY = field:datasource
REGEX = (.*)
FORMAT = sourcetype::$1
DEST_KEY = MetaData:Sourcetype

[autohost]
SOURCE_KEY = field:orighost
REGEX = (.*)
FORMAT = host::$1
DEST_KEY = MetaData:Host

[autoparse]
SOURCE_KEY = field:message
REGEX = (.*)
FORMAT = $1
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated, I cannot figure out why Splunk ignores this config!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 22:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366970#M66719</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-17T22:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366971#M66720</link>
      <description>&lt;P&gt;Maybe move the props and transforms to the local directory in your app to bump it up the precedence list?? If I understand you correctly, that this config is working on another host, thats what I'd check..&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 00:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366971#M66720</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-18T00:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366972#M66721</link>
      <description>&lt;P&gt;...why are there two commas together in the TRANSFORMS line?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 02:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366972#M66721</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-18T02:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366973#M66722</link>
      <description>&lt;P&gt;oh yeah..is that actually your props file?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 04:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366973#M66722</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-18T04:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366974#M66723</link>
      <description>&lt;P&gt;Hey good catch, i fixed that after the posting and still no workie workie.... I think that has something to do with the fact that this is a tcp input/!?!? My other system is getting these transactions from a kinesis stream.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 11:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366974#M66723</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-18T11:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366975#M66724</link>
      <description>&lt;P&gt;yes it is!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 11:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366975#M66724</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-18T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366976#M66725</link>
      <description>&lt;P&gt;Thank you for the response, but this is not the case. I have already tried to put them in local, but it should not matter as there is nothing in local, in fact there is not even a local directory. I am stuck on this having something to do with the type of input. I am at a total loss and it seems that splunk is completely ignoring this config for some reason.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 12:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366976#M66725</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-18T12:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366977#M66726</link>
      <description>&lt;P&gt;It would matter, If there is another app with a local folder, it will win against this fluentd config if it conflicts ( please review file precedence)....but moving on...&lt;/P&gt;

&lt;P&gt;What does the data look like in the index at this point? what sourcetype is being applied? Syslog? Fluentd? json?&lt;/P&gt;

&lt;P&gt;Can we see your inputs.conf please? Is any other sourcetype coming in on this port?&lt;/P&gt;

&lt;P&gt;Is this a standalone Splunk deployment or distributed? If the data is being caught on a tcp port by a forwarder, does it have this props? Because you are using indexed extractions, you need to ensure the forwarder has the props.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Extractfieldsfromfileswithstructureddata"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;see caveats section&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 13:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366977#M66726</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-18T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366978#M66727</link>
      <description>&lt;P&gt;Hey thanks for getting back to me. This is a standalone install of spunk, and all-in-one. This ia my "lab" server  and it's running in a VM on my mac. I have fluentd installed right locally on the machine and it loops back to tcp port 9999 to write to spunk. I do have a props for the tcp input by virtue of the fact that i am setting the input source type as fluentd, so in spunk UI it does show as sourcetype=fluentd. So I setup a props with [fluentd] as a stanza. There is no forwarder involved here, from a spunk standpoint it is just another raw syslog feed.&lt;/P&gt;

&lt;P&gt;Let me know cause' this is killing me&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2017 17:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366978#M66727</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-19T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366979#M66728</link>
      <description>&lt;P&gt;ok cool, will try it in the lab and see if I can figure out whats up&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2017 18:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366979#M66728</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-19T18:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366980#M66729</link>
      <description>&lt;P&gt;There is no other local folder in this config. It is a bare bones install in a VM with no other configs. Once thing I realized is that the precedence in my transforms.conf is wrong. In order for me to get fields I need to first rewrite _raw which is a son string, then I &lt;EM&gt;thought&lt;/EM&gt; it would work, but it is not ... &lt;/P&gt;

&lt;P&gt;Any more thoughts?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 13:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366980#M66729</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-25T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366981#M66730</link>
      <description>&lt;P&gt;can you provide the output of:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;./splunk btool inputs list tcp --debug&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;./splunk btool props list fluentd --debug&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;One thing I could think of would be that the json indexed extractions aren't happening for some reason? Your sourcetype is relying on fields to be present to make the re-writes, so maybe its not available....hard to say for me without seeing the system. &lt;/P&gt;

&lt;P&gt;Do you have some sample events? &lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 20:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366981#M66730</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-25T20:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366982#M66731</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;splunk[/opt/splunk/etc/apps/fluentd/local] $ splunk btool inputs list tcp --debug
/opt/splunk/etc/system/default/inputs.conf    [tcp]
/opt/splunk/etc/system/default/inputs.conf    _rcvbuf = 1572864
/opt/splunk/etc/system/default/inputs.conf    acceptFrom = *
/opt/splunk/etc/system/default/inputs.conf    connection_host = dns
/opt/splunk/etc/system/local/inputs.conf      host = splunk
/opt/splunk/etc/system/default/inputs.conf    index = default
/opt/splunk/etc/apps/search/local/inputs.conf [tcp://9999]
/opt/splunk/etc/system/default/inputs.conf    _rcvbuf = 1572864
/opt/splunk/etc/apps/search/local/inputs.conf connection_host = dns
/opt/splunk/etc/system/local/inputs.conf      host = splunk
/opt/splunk/etc/system/default/inputs.conf    index = default
/opt/splunk/etc/apps/search/local/inputs.conf sourcetype = _undefined

splunk[/opt/splunk/etc/apps/fluentd/local] $ splunk btool props list fluentd --debug
/opt/splunk/etc/apps/search/local/props.conf [fluentd]
/opt/splunk/etc/system/default/props.conf    ANNOTATE_PUNCT = True
/opt/splunk/etc/system/default/props.conf    AUTO_KV_JSON = true
/opt/splunk/etc/system/default/props.conf    BREAK_ONLY_BEFORE =
/opt/splunk/etc/system/default/props.conf    BREAK_ONLY_BEFORE_DATE = True
/opt/splunk/etc/system/default/props.conf    CHARSET = UTF-8
/opt/splunk/etc/apps/search/local/props.conf DATETIME_CONFIG =
/opt/splunk/etc/system/default/props.conf    HEADER_MODE =
/opt/splunk/etc/system/default/props.conf    LEARN_MODEL = true
/opt/splunk/etc/system/default/props.conf    LEARN_SOURCETYPE = true
/opt/splunk/etc/system/default/props.conf    LINE_BREAKER_LOOKBEHIND = 100
/opt/splunk/etc/system/default/props.conf    MATCH_LIMIT = 100000
/opt/splunk/etc/system/default/props.conf    MAX_DAYS_AGO = 2000
/opt/splunk/etc/system/default/props.conf    MAX_DAYS_HENCE = 2
/opt/splunk/etc/system/default/props.conf    MAX_DIFF_SECS_AGO = 3600
/opt/splunk/etc/system/default/props.conf    MAX_DIFF_SECS_HENCE = 604800
/opt/splunk/etc/system/default/props.conf    MAX_EVENTS = 256
/opt/splunk/etc/system/default/props.conf    MAX_TIMESTAMP_LOOKAHEAD = 128
/opt/splunk/etc/system/default/props.conf    MUST_BREAK_AFTER =
/opt/splunk/etc/system/default/props.conf    MUST_NOT_BREAK_AFTER =
/opt/splunk/etc/system/default/props.conf    MUST_NOT_BREAK_BEFORE =
/opt/splunk/etc/apps/search/local/props.conf NO_BINARY_CHECK = true
/opt/splunk/etc/system/default/props.conf    SEGMENTATION = indexing
/opt/splunk/etc/system/default/props.conf    SEGMENTATION-all = full
/opt/splunk/etc/system/default/props.conf    SEGMENTATION-inner = inner
/opt/splunk/etc/system/default/props.conf    SEGMENTATION-outer = outer
/opt/splunk/etc/system/default/props.conf    SEGMENTATION-raw = none
/opt/splunk/etc/system/default/props.conf    SEGMENTATION-standard = standard
/opt/splunk/etc/apps/search/local/props.conf SHOULD_LINEMERGE = false
/opt/splunk/etc/system/default/props.conf    TRANSFORMS =
/opt/splunk/etc/system/default/props.conf    TRUNCATE = 10000
/opt/splunk/etc/apps/search/local/props.conf category = Custom
/opt/splunk/etc/system/default/props.conf    detect_trailing_nulls = false
/opt/splunk/etc/system/default/props.conf    maxDist = 100
/opt/splunk/etc/system/default/props.conf    priority =
/opt/splunk/etc/apps/search/local/props.conf pulldown_type = 1
/opt/splunk/etc/system/default/props.conf    sourcetype =
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Mar 2017 20:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366982#M66731</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-03-28T20:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata will not rewrite. Why is Splunk ignoring my configurations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366983#M66732</link>
      <description>&lt;P&gt;why is the sourcetype &lt;CODE&gt;_undefined&lt;/CODE&gt; on your 9999 input?&lt;BR /&gt;
also INDEXED_EXTRACTIONS=JSON is not set in your props?&lt;BR /&gt;
Also not seeing your transforms being set in props....&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 22:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Metadata-will-not-rewrite-Why-is-Splunk-ignoring-my/m-p/366983#M66732</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-28T22:34:29Z</dc:date>
    </item>
  </channel>
</rss>

