<?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 Changing the sourcetype to remove spaces in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484660#M82991</link>
    <description>&lt;P&gt;I'm working on a TA to process Venafi messages brought in via RestAPI.  When I was testing I used hostname in the props.conf file to call the transform to change the sourcetype.  I can't do that in production because the production Windows servers send logs via the UF.  I tried this yesterday in test.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[source::Venafi\sTrust\sProtection\sPlatform]&lt;BR /&gt;
TZ = US/Pacific&lt;BR /&gt;
TRANSFORMS-venafi = venafi_sourcetype_rename&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[venafi_sourcetype_rename]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::venafi_tpp&lt;BR /&gt;
REGEX = (.)&lt;/P&gt;

&lt;P&gt;According to the Splunk documentation it is a source-matching pattern&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;source::, where  is the source, or source-matching
                 pattern, for an event.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;This is what I have to work with&lt;/P&gt;

&lt;P&gt;source = Venafi Trust Protection Platform&lt;BR /&gt;
sourcetype = Venafi TPP Log Event&lt;/P&gt;

&lt;P&gt;Any ideas on how I can use source to reset sourcetype?&lt;/P&gt;

&lt;P&gt;TIA,&lt;BR /&gt;
Joe&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:41:16 GMT</pubDate>
    <dc:creator>jwhughes58</dc:creator>
    <dc:date>2020-09-30T03:41:16Z</dc:date>
    <item>
      <title>Changing the sourcetype to remove spaces</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484660#M82991</link>
      <description>&lt;P&gt;I'm working on a TA to process Venafi messages brought in via RestAPI.  When I was testing I used hostname in the props.conf file to call the transform to change the sourcetype.  I can't do that in production because the production Windows servers send logs via the UF.  I tried this yesterday in test.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[source::Venafi\sTrust\sProtection\sPlatform]&lt;BR /&gt;
TZ = US/Pacific&lt;BR /&gt;
TRANSFORMS-venafi = venafi_sourcetype_rename&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[venafi_sourcetype_rename]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::venafi_tpp&lt;BR /&gt;
REGEX = (.)&lt;/P&gt;

&lt;P&gt;According to the Splunk documentation it is a source-matching pattern&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;source::, where  is the source, or source-matching
                 pattern, for an event.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;This is what I have to work with&lt;/P&gt;

&lt;P&gt;source = Venafi Trust Protection Platform&lt;BR /&gt;
sourcetype = Venafi TPP Log Event&lt;/P&gt;

&lt;P&gt;Any ideas on how I can use source to reset sourcetype?&lt;/P&gt;

&lt;P&gt;TIA,&lt;BR /&gt;
Joe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484660#M82991</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2020-09-30T03:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype to remove spaces</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484661#M82992</link>
      <description>&lt;P&gt;have you tried just putting the spaces in the source:: stanza?  Not sure if you need regex there or why splunk wouldn't be able to handle spaces...but i've never tried.&lt;/P&gt;

&lt;P&gt;Also, how is the data getting sent into Splunk...and is there a reason the sourcetype can't just be set there?  I'm a little confused on the Rest API and the Windows UF part of the scenario...but likely it could be set at input time?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 14:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484661#M82992</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-01-18T14:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype to remove spaces</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484662#M82993</link>
      <description>&lt;P&gt;Whatever you were doing in pre-prod should work fine in production, you just need to deploy it to your Indexer (or HF) tier.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 19:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484662#M82993</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-01-18T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype to remove spaces</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484663#M82994</link>
      <description>&lt;P&gt;The data is ingested by Splunk via the RestAPI.  Unfortunately the application sets the sourcetype before sending the messages and the sourcetype can't be changed in the application UI.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 18:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484663#M82994</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2020-01-20T18:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the sourcetype to remove spaces</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484664#M82995</link>
      <description>&lt;P&gt;What I wound up doing was using source=Venafi* since Venafi only has the one feed.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 18:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-sourcetype-to-remove-spaces/m-p/484664#M82995</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2020-01-20T18:41:15Z</dc:date>
    </item>
  </channel>
</rss>

