<?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 working on JSON events from Universal Forwader in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536612#M89948</link>
    <description>&lt;P&gt;I understand that I could turn on "force_local_processing" potentially, but this should be unnecessary given this (seemingly) simple setup. Also, the EC2 instance being used to host the Universal Forwarder is intentionally trying to be kept as small sized as possible. Introducing any further overhead to the Universal Forwarder side when not required is undesirable.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 04:33:32 GMT</pubDate>
    <dc:creator>tmeader</dc:creator>
    <dc:date>2021-01-21T04:33:32Z</dc:date>
    <item>
      <title>Transforms not working on JSON events from Universal Forwader</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536587#M89943</link>
      <description>&lt;DIV class="p-rich_text_section"&gt;So, I've got (unfortunately multi-line) JSON files being sent from a host to our indexers via Universal Forwarder. By using the "sourcetype=_json" in the Universal Forwarder's inputs.conf stanza, messages are making it to the indexers just fine.&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;However, I'm trying to rename the sourcetype (as well as do, what should be, some simple extractions) based on the incoming logs' "source" on the indexer side. This isn't working at all... trying to figure out why. Based on the source visible in the Splunk when looking at the events, these should be matching.&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;inputs.conf&lt;BR /&gt;--&lt;BR /&gt;[monitor:///opt/cloud-custodian-container/.../resources.json]&lt;BR /&gt;sourcetype = _json&lt;BR /&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;BR /&gt;index = cloud_custodian&lt;BR /&gt;&lt;BR /&gt;props.conf (on indexers)&lt;BR /&gt;--&lt;BR /&gt;[source::.../cloud-custodian-container/.../resources.json]&lt;BR /&gt;TRANSFORMS-cc_change_sourcetype = cc_change_sourcetype&lt;BR /&gt;TRANSFORMS-cc_indexed_fields = cc_indexed_fields&lt;BR /&gt;&lt;BR /&gt;transforms.conf (on indexers)&lt;BR /&gt;--&lt;BR /&gt;[cc_change_sourcetype]&lt;BR /&gt;REGEX = \/cloud-custodian-container\/\d{12}\/[\w\-]+\/&lt;BR /&gt;FORMAT = sourcetype::cloud_custodian&lt;BR /&gt;SOURCE_KEY = MetaData:Source&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;&lt;BR /&gt;[cc_indexed_fields]&lt;BR /&gt;REGEX = \/cloud-custodian-container\/(\d{12})\/([\w\-]+)\/&lt;BR /&gt;FORMAT = aws_account_id::$1 region::$2&lt;BR /&gt;SOURCE_KEY = MetaData:Source&lt;BR /&gt;WRITE_META = true&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 22:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536587#M89943</guid>
      <dc:creator>tmeader</dc:creator>
      <dc:date>2021-01-20T22:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working on JSON events from Universal Forwader</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536609#M89946</link>
      <description>&lt;P&gt;Configure props and transforms configurations on universal forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 04:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536609#M89946</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-21T04:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working on JSON events from Universal Forwader</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536612#M89948</link>
      <description>&lt;P&gt;I understand that I could turn on "force_local_processing" potentially, but this should be unnecessary given this (seemingly) simple setup. Also, the EC2 instance being used to host the Universal Forwarder is intentionally trying to be kept as small sized as possible. Introducing any further overhead to the Universal Forwarder side when not required is undesirable.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 04:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536612#M89948</guid>
      <dc:creator>tmeader</dc:creator>
      <dc:date>2021-01-21T04:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not working on JSON events from Universal Forwader</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536613#M89949</link>
      <description>&lt;P&gt;Since you are using&amp;nbsp;&lt;SPAN&gt;default sourcetype &lt;STRONG&gt;_json&lt;/STRONG&gt; which is already set up with&lt;STRONG&gt;&amp;nbsp;INDEXED_EXTRACTIONS=json&lt;/STRONG&gt; attribute in&amp;nbsp;Universal Forwarder's etc/system/default/props.conf, parsing happens in universal forwarder only.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;More info here on parsing phase:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Admin/Configurationparametersandthedatapipeline#Structured_parsing_phase" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Admin/Configurationparametersandthedatapipeline#Structured_parsing_phase&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.splunk.com/images/6/63/Splunk_EventProcessing_v20_1_UF_Indexer.pdf" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://wiki.splunk.com/images/6/63/Splunk_EventProcessing_v20_1_UF_Indexer.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Instead of using transforms.conf, you can use&amp;nbsp;props.conf to override automated source type matching and explicitly assign a single source type to all data coming from a specific source on universal forwarder.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[source::.../cloud-custodian-container/*/*/resources.json]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sourcetype=cloud_custodian &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 05:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-working-on-JSON-events-from-Universal-Forwader/m-p/536613#M89949</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-21T05:05:56Z</dc:date>
    </item>
  </channel>
</rss>

