<?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 and props.conf splitting sourcetype not matching in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256858#M49372</link>
    <description>&lt;P&gt;Are you using Universal forwarder OR heavy forwarder to collect the data? If it's UF then your props.conf and transforms.conf should be on Indexer/next heavy forwarder in the flow. If it's HF then your props and transforms should be on Heavy Forwarder.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2016 15:52:31 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-01T15:52:31Z</dc:date>
    <item>
      <title>transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256855#M49369</link>
      <description>&lt;P&gt;I'm trying to follow the pattern of matching a string and transforming the event into a new sourcetype. I'm using a sourcetype for syslog defined in inputs.conf; it is being read from logs. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;/var/log/syslog contains events matching string "sqsd" that I would like to rewrite to a new sqsd sourcetype&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've found multiple answers posts about this topic but can't seem to determine why I'm not getting any data as the transformed sourcetype.  Originally, I thought the problem was in my REGEX in transforms.conf, but if I set it to &lt;CODE&gt;.*&lt;/CODE&gt; or remove it completely I still don't get results.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[monitor:///var/log/syslog]&lt;BR /&gt;
sourcetype=syslog&lt;BR /&gt;
index = test&lt;BR /&gt;
ignoreOlderThan = 24h&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-syslog = set_sqsd_sourcetype&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[set_sqsd_sourcetype]&lt;BR /&gt;
REGEX = sqsd&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::sqsd&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;splunkd.log does not show any errors, so I don't think my conf files are invalid. Right now I am seeing all events as sourcetype=syslog.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256855#M49369</guid>
      <dc:creator>dstark</dc:creator>
      <dc:date>2020-09-29T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256856#M49370</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
try using the btool command to troubleshoot your issue. On the Splunk instance that should do the sourcetype rewrite (keep in mind that this happens at index time), do the following from the CLI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk cmd btool props list syslog --debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thie above will lists all the specs of the "syslog" sourcetype. Make sure you're seeing the transformation you've defined "set_sqsd_sourcetype".&lt;/P&gt;

&lt;P&gt;Do the same for the actual transformation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk cmd btool transforms list set_sqsd_sourcetype --debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once again, make sure, the specs you have defined are listed.&lt;/P&gt;

&lt;P&gt;Very likely, the configuration is not applied correctly or it is overridden by something else..the btool command should give you the exact snapshot of which configuration is enabled and it helped me hundreds of time (many times for the issue of mis-overwritten sourcetypes at index time).&lt;/P&gt;

&lt;P&gt;Hope it help,&lt;BR /&gt;
N&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256856#M49370</guid>
      <dc:creator>Nicolo_Figiani</dc:creator>
      <dc:date>2020-09-29T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256857#M49371</link>
      <description>&lt;P&gt;As far as I can tell btool is showing exactly what I expect. There's a unique TRANSFORMS for syslog in /etc/system/local and the default TRANFSORMS from /etc/system/default:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;/opt/splunkforwarder/etc/system/default/props.conf TRANSFORMS = syslog-host&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;/opt/splunkforwarder/etc/system/local/props.conf   TRANSFORMS-syslog = set_sqsd_sourcetype&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256857#M49371</guid>
      <dc:creator>dstark</dc:creator>
      <dc:date>2016-09-01T15:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256858#M49372</link>
      <description>&lt;P&gt;Are you using Universal forwarder OR heavy forwarder to collect the data? If it's UF then your props.conf and transforms.conf should be on Indexer/next heavy forwarder in the flow. If it's HF then your props and transforms should be on Heavy Forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256858#M49372</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-01T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256859#M49373</link>
      <description>&lt;P&gt;Ah....I'm using a universal forwarder and Splunk Cloud. I found this link (search "im-struggling-with-how-i-should-be-doing-inputs-and-also-props-transforms-etc-stuff-within-splunk-cloud" as I can't post links) which explains how to modify props and transforms.conf using the GUI in Splunk Cloud. I'll give it a shot and post screenshots if I can get it working.&lt;/P&gt;

&lt;P&gt;Thanks somesoni2!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256859#M49373</guid>
      <dc:creator>dstark</dc:creator>
      <dc:date>2016-09-01T17:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256860#M49374</link>
      <description>&lt;P&gt;I guess we know why now. You're configuring the source type override on your universal forwarder. However, it is not a full Splunk instance and It has not parsing capabilities. You should configure everything on the first FULL Splunk instance ( HFW or IDX ) of your chain.&lt;BR /&gt;
Your configuration looks ok so, just place it on the right Splunk instance and everything should work.&lt;/P&gt;

&lt;P&gt;In addition, the entry regarding the props.conf has a different name "syslog-host" whereas you're looking for "syslog" and it refers to /system/default/props.conf. This is not you're configuration so, be sure to deploy your props config as well..&lt;/P&gt;

&lt;P&gt;Hope it helps and let me know..&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256860#M49374</guid>
      <dc:creator>Nicolo_Figiani</dc:creator>
      <dc:date>2016-09-01T17:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256861#M49375</link>
      <description>&lt;P&gt;I've verified that I should be changing the Splunk Cloud instance with the link above. However, I'm still not seeing results with &lt;CODE&gt;sourcetype=sqsd&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I'm not able to set the &lt;CODE&gt;DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt; using the GUI, maybe this is the problem?&lt;BR /&gt;
&lt;A href="http://imgur.com/a/jFy8B"&gt;http://imgur.com/a/jFy8B&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 12:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256861#M49375</guid>
      <dc:creator>dstark</dc:creator>
      <dc:date>2016-09-02T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256862#M49376</link>
      <description>&lt;P&gt;That's probably it. You need Splunk's held to get this props and transforms deployed.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 13:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256862#M49376</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-02T13:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: transforms and props.conf splitting sourcetype not matching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256863#M49377</link>
      <description>&lt;P&gt;I had to contact Splunk support to apply these configs to my Splunk Cloud indexer. Thank you Nicolo_Figiani and somesoni2 for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-and-props-conf-splitting-sourcetype-not-matching/m-p/256863#M49377</guid>
      <dc:creator>dstark</dc:creator>
      <dc:date>2016-09-02T14:52:52Z</dc:date>
    </item>
  </channel>
</rss>

