<?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: Change source type in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84281#M5429</link>
    <description>&lt;P&gt;Thanks mate, appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 18:47:18 GMT</pubDate>
    <dc:creator>DaveSavage</dc:creator>
    <dc:date>2013-01-10T18:47:18Z</dc:date>
    <item>
      <title>Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84273#M5421</link>
      <description>&lt;P&gt;** I am trying get the three IP addresses to use a new sourcetye when they send in data.&lt;/P&gt;

&lt;P&gt;Props.conf reads :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::udp:514]
TRANSFORMS-riverbed_src = riverbed_steelhead
TRANSFORMS-changesourcetype = sourcetype_cisco_asa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf reads :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[riverbed_steelhead]
REGEX = (10.12.0.20:10.0.0.33:10.10.20.185)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::riverbed_steelhead

[sourcetype_cisco_asa]
REGEX = (10.12.254.1:10.10.20.254:10.1.250.254)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::cisco_asa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get the Error :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Possible typo in stanza [riverbed_steelhead] in transforms.conf. Line 4
Possible typo in stanza [sourcetype_cisco_asa] in transforms.conf. Line 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone help me find my problem please.&lt;/P&gt;

&lt;P&gt;FYI : I also tried the format :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (10.12.0.20|10.0.0.33|10.10.20.185)**
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84273#M5421</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T17:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84274#M5422</link>
      <description>&lt;P&gt;Don't you need to escape the dots vistasyslog? Point / dot is a metacharacter in regular expressions. Usually fixed ones are in quotes? I'll try sort the regex out unless somebody does it first...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84274#M5422</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-10T18:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84275#M5423</link>
      <description>&lt;P&gt;I also tried : [10.12.0.20|10.0.0.33) and that did not work either.&lt;BR /&gt;
I dont understand the typo in the first line.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84275#M5423</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84276#M5424</link>
      <description>&lt;P&gt;there is a backslash before each ".", which for some reason is not showing up when I type it here.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84276#M5424</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84277#M5425</link>
      <description>&lt;P&gt;Understood - I know the issue re slashes (forward or backwards) being a representation issue...it's something to do with the formatting of responses and can be overcome. I'm not sure how as yet, but others have kindly corrected my stuff and I need to learn too! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84277#M5425</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-10T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84278#M5426</link>
      <description>&lt;P&gt;May I just check - you have tried "10\.12\.0\.20""etc..."&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84278#M5426</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-10T18:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84279#M5427</link>
      <description>&lt;P&gt;Either indent code blocks with four spaces at the start of each line (this line needs to have empty lines before and after), or use backticks. This should make code show properly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84279#M5427</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-10T18:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84280#M5428</link>
      <description>&lt;P&gt;Your regexes look weird, vistasyslog. Do you know how to write regexes, or figuring out as you go along? Because &lt;CODE&gt;:&lt;/CODE&gt; is definitely not interpreted as an OR operator in regular expressions. &lt;CODE&gt;|&lt;/CODE&gt; is, though.&lt;/P&gt;

&lt;P&gt;Also you're not specifying a &lt;CODE&gt;SOURCE_KEY&lt;/CODE&gt;, which means Splunk will match against the raw event data. Is this what you want, or do you want to read from the host field?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84280#M5428</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-10T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84281#M5429</link>
      <description>&lt;P&gt;Thanks mate, appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84281#M5429</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-10T18:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84282#M5430</link>
      <description>&lt;P&gt;I am figuring it out.&lt;BR /&gt;
I thought the backslash before every dot on the IP address was the right way to do it.&lt;BR /&gt;
I am getting typos for the first line though.&lt;BR /&gt;
Should I specify a source key ?&lt;BR /&gt;
All I need is a way to have 10.10.20.185 use the sourcetype as riverbed_steelhead instead of syslog.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84282#M5430</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T18:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84283#M5431</link>
      <description>&lt;P&gt;If you want Splunk to read from the host field rather than the &lt;CODE&gt;_raw&lt;/CODE&gt; field, then you must tell it to do so, yes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SOURCE_KEY = MetaData:Host
REGEX = (10\.12\.0\.20|10\.0\.0\.33|10\.10\.20\.185)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::riverbed_steelhead
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84283#M5431</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-10T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84284#M5432</link>
      <description>&lt;P&gt;One thing I dont understand is, when I restart Splunk, why do I get the typo error ?&lt;BR /&gt;
Is the above change going to make the IP addresses stop using syslog sourcetype and use just the riverbed_steelhead sourcetype ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84284#M5432</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T19:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84285#M5433</link>
      <description>&lt;P&gt;The reason for the typo is you have two TRANSFORMS configurations when you should only have one.  Instead of the two lines you have there, use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-changesourcetype = riverbed_steelhead, sourcetype_cisco_asa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you need to add more transforms.conf stanzas to this source, you just append them to the line, comma separated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84285#M5433</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2013-01-10T19:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84286#M5434</link>
      <description>&lt;P&gt;Well your original statement posting did indeed indicate that as the way you were going vistasyslog in the trasforms and props?!&lt;BR /&gt;
If you are talking about the indexer, yes that is what it is now expecting. If you are talking forwarder then yes, that's where it will be sending...&lt;BR /&gt;
As Ayn said - are you new to this? No probs if so, just say - then peeps won't assume you are a guru on regex (for example)...they just want to help. Full problem statements get better results, trust me - we all need it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84286#M5434</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-10T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84287#M5435</link>
      <description>&lt;P&gt;..and what error was it throwing at you? Can you paste it pls?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84287#M5435</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-10T19:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84288#M5436</link>
      <description>&lt;P&gt;I am new to this.&lt;BR /&gt;
First time I am setting up Splunk. I am no where close to being a REGEX Guru.&lt;BR /&gt;
The error that I get is :  &lt;/P&gt;

&lt;P&gt;I get the Error :&lt;/P&gt;

&lt;P&gt;Possible typo in stanza [riverbed_steelhead] in transforms.conf. Line 4&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84288#M5436</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T20:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84289#M5437</link>
      <description>&lt;P&gt;I am wondering if the error is because you are using the incorrect syntax for the regex. If you want more than one ip address to matches with the REGEX then you need to separate them with a pipe symbol and not a colon. Here is an example of what I would try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[riverbed_steelhead]
REGEX = (10.12.0.20|10.0.0.33|10.10.20.185)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::riverbed_steelhead
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84289#M5437</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2013-01-10T20:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84290#M5438</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;
I am getting the logs sent to the new source type.&lt;BR /&gt;
I still get that error though.&lt;BR /&gt;
Can I have the logs to go to just the new sourcetype and not to syslogs at all ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84290#M5438</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T21:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84291#M5439</link>
      <description>&lt;P&gt;see my comment above for the explanation to your error.  You can't have two TRANSFORMS lines in a single props.conf stanza.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84291#M5439</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2013-01-10T21:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change source type</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84292#M5440</link>
      <description>&lt;P&gt;I tried it and still got the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Change-source-type/m-p/84292#M5440</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2013-01-10T21:36:33Z</dc:date>
    </item>
  </channel>
</rss>

