<?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 conf to reroute logs to different index. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604445#M105115</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231252"&gt;@Habanero&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;some questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;where are you making syslog ingestion, on the same HF where you located the transformation on in another HF?&lt;/LI&gt;&lt;LI&gt;what is the sourcetype you're using to ingest vmware logs, are you sure that there isn't any sourcetype overriding and the sourcetype is still "vmware"?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you have syslog ingestion in another HF, you have to put the transformation in that HF.&lt;/P&gt;&lt;P&gt;About SOURCE_KEY, it isn't relevant because it's _raw, so you can also omit it.&lt;/P&gt;&lt;P&gt;About the regex, I'd try with a simpler one:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = 2300-&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 13:26:49 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-07-05T13:26:49Z</dc:date>
    <item>
      <title>Transforms.conf to reroute logs to different index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604444#M105114</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to "reroute" specific logs (based on Regex match) to a different index. This is done on the heavy-forwarder. It is ingested via syslog.&lt;/P&gt;&lt;P&gt;Both props and transform are in the correct folder where syslogs events are ingested.&lt;/P&gt;&lt;P&gt;I have created a ruleset in props.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[vmware]
TRANSFORMS-include = reroute_to_indexA&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the config from transform.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[reroute_to_indexA]
SOURCE_KEY = _raw
REGEX = ^.*2300-.*$
DEST_KEY = _MetaData:Index
FORMAT = index-a&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last but not least here is a sample of the logs I am working with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Jul  5 09:02:11 10.32.37.214 1 2022-07-05T09:02:11.339-04:00 2300-RDSH-1-2 View - 1009 [View@6876 Severity="INFO" Module="Agent" EventType="AGENT_DISCONNECTED" UserSID="omitted" UserDisplayName="omitted" PoolId="2300-rdsh-farm1" MachineId="omitted" MachineName="2300-RDSH-1-2" MachineDnsName="2300-rdsh-1-2" CurrentSessionLength="180" TotalLoginLength="180" SessionType="APPLICATION"] User omitted has disconnected from machine 2300-RDSH-1-2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point I would have expected to see the logs being written to &lt;EM&gt;index-a. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What have I done so far as troubleshooting:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove SOURCE_KEY&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Replace SOURCE_KEY = _raw with field:MachineDnsName&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Replace SOURCE_KEY = _raw with fields:MachineDnsName&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Substituted the REGEX for .*2300.* and .*2300-.*&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Nothing have helped so far; any help or pointers would be greatly appreciated.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604444#M105114</guid>
      <dc:creator>Habanero</dc:creator>
      <dc:date>2022-07-05T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms conf to reroute logs to different index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604445#M105115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231252"&gt;@Habanero&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;some questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;where are you making syslog ingestion, on the same HF where you located the transformation on in another HF?&lt;/LI&gt;&lt;LI&gt;what is the sourcetype you're using to ingest vmware logs, are you sure that there isn't any sourcetype overriding and the sourcetype is still "vmware"?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you have syslog ingestion in another HF, you have to put the transformation in that HF.&lt;/P&gt;&lt;P&gt;About SOURCE_KEY, it isn't relevant because it's _raw, so you can also omit it.&lt;/P&gt;&lt;P&gt;About the regex, I'd try with a simpler one:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = 2300-&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604445#M105115</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-05T13:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms conf to reroute logs to different index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604446#M105116</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you the the quick reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Yes, ingestion is done on the same HF. We only have one in our environment.&lt;/LI&gt;&lt;LI&gt;As per our Search Heads the sourcetype is classified as "vmw-syslog". The index is "vmware"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To expand on your second point, I though what was put between the square brackets (stanza?) could define either a index or a sourcetype [vmware] or [vmware:vmw-syslog]&lt;/P&gt;&lt;P&gt;In any case, I have modified the value inside the square brackets for the props, and followed your suggestion for the transforms.conf.&lt;/P&gt;&lt;P&gt;Unfortunately, It is not a log source that is super noisy. I will report back once data comes in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604446#M105116</guid>
      <dc:creator>Habanero</dc:creator>
      <dc:date>2022-07-05T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms conf to reroute logs to different index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604450#M105118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231252"&gt;@Habanero&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;when you don't have any explicit field name, you have always sourcetype, so use "&lt;SPAN&gt;vmware:vmw-syslog".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, in the transfrom, you can use source or host or sourcetype, never index.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604450#M105118</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-05T14:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms conf to reroute logs to different index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604451#M105119</link>
      <description>&lt;P&gt;I see thank you for clarifying that.&lt;/P&gt;&lt;P&gt;I am please to report that it is finally working. I suspect the biggest problem was the value inside the [] in my props.conf that was the problem.&lt;/P&gt;&lt;P&gt;For anyone that stumble upon this post in the feature&lt;/P&gt;&lt;P&gt;Here's the working config:&lt;/P&gt;&lt;P&gt;props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[vmw-syslog]
TRANSFORMS-include = reroute_to_indexA&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[reroute_to_indexA]
REGEX = 2300-
DEST_KEY = _MetaData:Index
FORMAT = index-a&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-conf-to-reroute-logs-to-different-index/m-p/604451#M105119</guid>
      <dc:creator>Habanero</dc:creator>
      <dc:date>2022-07-05T14:12:23Z</dc:date>
    </item>
  </channel>
</rss>

