<?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: Props/ Transforms problems - Meraki in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301513#M56977</link>
    <description>&lt;P&gt;go in regex101.com and insert your log and my regex and verify if it's correct, maybe there's something different in your production logs.&lt;BR /&gt;
Using the one you inserted in this question the regex is correct.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2017 16:13:21 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-04-04T16:13:21Z</dc:date>
    <item>
      <title>Props/ Transforms problems - Meraki</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301510#M56974</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;

&lt;P&gt;I'm trying to use props/ transforms to set a sourcetype and change the hostname of my devices. Currently they are coming in as sourcetype=syslog&lt;/P&gt;

&lt;P&gt;My event looks like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Apr  3 22:37:36 10.77.265.178 1 1491277141.711671730 NAME_LOC_FW1 events Site-to-site VPN: notification INVALID-ID-INFORMATION received in informational exchange.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I want to extract "NAME_LOC_FW1" and change the sourcetype to meraki as well as change the host to "NAME_LOC_FW1"&lt;/P&gt;

&lt;P&gt;I have the following props:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[syslog]&lt;BR /&gt;
TRANFORMS-changesourcetypes = NAME_LOC_FW1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-changehost = NAME_LOC_FW1_HOST&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And the following transforms:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[NAME_LOC_FW1]&lt;BR /&gt;
Regex = (NAME_LOC_FW1)&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::meraki&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[NAME_LOC_FW1_HOST]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = (?)(NAME_LOC_FW1)&lt;BR /&gt;
FORMAT = host::$1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This isn't working... Can anyone tell me what I'm doing wrong?&lt;/P&gt;

&lt;P&gt;Also, this is implemented on a Heavy Forwarder.&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;

&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301510#M56974</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2020-09-29T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Props/ Transforms problems - Meraki</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301511#M56975</link>
      <description>&lt;P&gt;Hi jgorman_THG,&lt;BR /&gt;
I'm not sure about your regex, try with a different one, something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\w+\s\d+\s\d+:\d+:\d+\s\d+\.\d+\.\d+\.\d+\s\d+\s\d+\.\d+\s(?&amp;lt;host&amp;gt;[^ ]*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can try it on &lt;A href="https://regex101.com/r/g9PJJD/1"&gt;https://regex101.com/r/g9PJJD/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301511#M56975</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-04T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Props/ Transforms problems - Meraki</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301512#M56976</link>
      <description>&lt;P&gt;Hi Guiseppe!&lt;/P&gt;

&lt;P&gt;That didn't seem to work... I agree though, it's probably a regex problem. I'm not super strong in regex...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 13:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301512#M56976</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2017-04-04T13:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Props/ Transforms problems - Meraki</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301513#M56977</link>
      <description>&lt;P&gt;go in regex101.com and insert your log and my regex and verify if it's correct, maybe there's something different in your production logs.&lt;BR /&gt;
Using the one you inserted in this question the regex is correct.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301513#M56977</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-04T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Props/ Transforms problems - Meraki</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301514#M56978</link>
      <description>&lt;P&gt;Assuming that the value in the _raw is literally &lt;CODE&gt;NAME_LOC_FW1&lt;/CODE&gt; and you literally want the literal &lt;CODE&gt;NAME_LOC_FW1&lt;/CODE&gt; as your hostname...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ### props.conf
[syslog]
TRANFORMS-fw1 = NAME_LOC_FW1,NAME_LOC_FW1_HOST

##transforms.conf     
[NAME_LOC_FW1]
Regex = (NAME_LOC_FW1)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::meraki

[NAME_LOC_FW1_HOST]
DEST_KEY = MetaData:Host
REGEX = (NAME_LOC_FW1)
FORMAT = NAME_LOC_FW1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Warning - those stanzas will redirect any event that has that literal anywhere in the event.  If that is not the behavior that you would like, then the regex should be made more specific.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301514#M56978</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-09-29T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Props/ Transforms problems - Meraki</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301515#M56979</link>
      <description>&lt;P&gt;What about configuring meraki to send on a different port than 514 and just force all incoming data on that port to type meraki?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 22:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-Transforms-problems-Meraki/m-p/301515#M56979</guid>
      <dc:creator>myron_davis</dc:creator>
      <dc:date>2017-08-31T22:29:37Z</dc:date>
    </item>
  </channel>
</rss>

