<?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: Transforms not being applied to _json sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552472#M91652</link>
    <description>&lt;P&gt;So, as it turns out (after a LOT of testing, see the red lines...), a sourcetype with "INDEXED_EXTRACTIONS" specified at any point in the pipeline will disqualify that event from transforms on the _raw for the rest of pre-index lifespan of that event:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="indexed_extractions.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14246i99DB572E6614FDC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="indexed_extractions.png" alt="indexed_extractions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm talking with support now to submit a feature request for adding something like a "ENABLE_TRANSFORMS" options to props.conf that gets read during the typingQueue.&lt;/P&gt;&lt;P&gt;Until that gets added, the inarguably singular option I have right now is to modify the default config and set up a system to ensure those modifications don't get overwritten.&lt;/P&gt;&lt;P&gt;And unfortunately this means that the forwarders I do this to will be only be able to send to the syslog shipper. And from there I'll have to fork it back to the main indexer. If I want that data in Splunk with proper extracting done.&lt;/P&gt;&lt;P&gt;Other option is to force local processing on the UF, but that's not ideal because I need to minimize performance drain from the agents.&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 02:00:21 GMT</pubDate>
    <dc:creator>jocobwknight</dc:creator>
    <dc:date>2021-05-21T02:00:21Z</dc:date>
    <item>
      <title>Transforms not being applied to _json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552297#M91641</link>
      <description>&lt;P&gt;I've got a dedicated Heavy Forwarder that I am trying to use to ship logs out via syslog:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[syslog:outgoing]
server = receiver.vm.com:5140
type = tcp
priority = &amp;lt;110&amp;gt;
maxEventSize = 25600&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I also want to include Splunk metadata fields in the event as it gets shipped:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::*]
TRANSFORMS-Syslog_Items = \
    Syslog_Epoch, Syslog_SourceType, Syslog_Source, Syslog_Host, Syslog_Index
priority = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Syslog_Index]
SOURCE_KEY = _MetaData:Index
REGEX = ^(.*)$
FORMAT = toindex=$1 $0
DEST_KEY = _raw

[Syslog_Host]
SOURCE_KEY = MetaData:Host
REGEX = ^host::(.*)$
FORMAT = sourcehost=$1 $0
DEST_KEY = _raw

[Syslog_SourceType]
SOURCE_KEY = MetaData:Sourcetype
REGEX = ^sourcetype::(.*)$
FORMAT = sourcetype=$1 $0
DEST_KEY = _raw

[Syslog_Source]
SOURCE_KEY = MetaData:Source
REGEX = ^source::(.*)$
FORMAT = source=$1 $0
DEST_KEY = _raw

[Syslog_Epoch]
SOURCE_KEY = _time
REGEX = ^(.*)$
FORMAT = epoch=$1 $0
DEST_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this works for&amp;nbsp;&lt;EM&gt;most&lt;/EM&gt; data:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example Data&amp;nbsp;&lt;EM&gt;that worked&lt;/EM&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;110&amp;gt; generichostname toindex=os sourcehost=generichostname source=df sourcetype=df epoch=1621371418 Filesystem...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I've come to realize that structured data (specifically _json sourcetype data) doe not work:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example Data &lt;EM&gt;that&lt;/EM&gt;&lt;EM&gt; failed&lt;/EM&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;110&amp;gt; generichostname {"hostname": "generichostname", "ipaddress": "10.x.x.x"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying different modifications to the _json sourcetype configuration, and I even went so far as to erase the _json sourcetype altogether, but nothing works. If the data is json, then the transforms simply do not get applied. How do I fix this?&lt;/P&gt;&lt;P&gt;Again, this is a dedicated Heavy Forwarder with the &lt;EM&gt;sole&lt;/EM&gt; duty to ship out syslog. Universal Forwarders are going to be optionally given this HF as an output destination for any logs that we want shipped out via syslog. So I don't care how badly or how weirdly I change the parsing configs on this Splunk instance. I&amp;nbsp;&lt;EM&gt;just&lt;/EM&gt; want to indiscriminately insert metadata in front of ALL logs that this HF receives and ships out.&lt;/P&gt;&lt;P&gt;Any insight would be very appreciated! Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 23:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552297#M91641</guid>
      <dc:creator>jocobknight</dc:creator>
      <dc:date>2021-05-19T23:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not being applied to _json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552472#M91652</link>
      <description>&lt;P&gt;So, as it turns out (after a LOT of testing, see the red lines...), a sourcetype with "INDEXED_EXTRACTIONS" specified at any point in the pipeline will disqualify that event from transforms on the _raw for the rest of pre-index lifespan of that event:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="indexed_extractions.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14246i99DB572E6614FDC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="indexed_extractions.png" alt="indexed_extractions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm talking with support now to submit a feature request for adding something like a "ENABLE_TRANSFORMS" options to props.conf that gets read during the typingQueue.&lt;/P&gt;&lt;P&gt;Until that gets added, the inarguably singular option I have right now is to modify the default config and set up a system to ensure those modifications don't get overwritten.&lt;/P&gt;&lt;P&gt;And unfortunately this means that the forwarders I do this to will be only be able to send to the syslog shipper. And from there I'll have to fork it back to the main indexer. If I want that data in Splunk with proper extracting done.&lt;/P&gt;&lt;P&gt;Other option is to force local processing on the UF, but that's not ideal because I need to minimize performance drain from the agents.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 02:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552472#M91652</guid>
      <dc:creator>jocobwknight</dc:creator>
      <dc:date>2021-05-21T02:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not being applied to _json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552473#M91653</link>
      <description>&lt;P&gt;In case this looks weird I happen to be merging my accounts right now. I swear I'm not talking to myself!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 02:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-being-applied-to-json-sourcetype/m-p/552473#M91653</guid>
      <dc:creator>jocobknight</dc:creator>
      <dc:date>2021-05-21T02:04:22Z</dc:date>
    </item>
  </channel>
</rss>

