<?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: Custom Sourcetype Challenges in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124536#M25669</link>
    <description>&lt;P&gt;The events were separated correctly.  The issue I am facing is how to separate the name : value pairs within the atomic events that I've created.  Sorry if that was unclear.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2013 14:36:49 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2013-11-12T14:36:49Z</dc:date>
    <item>
      <title>Custom Sourcetype Challenges</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124534#M25667</link>
      <description>&lt;P&gt;Using splunk 5.0.2 (although tested on splunk 6 as well - same challenges).&lt;/P&gt;

&lt;P&gt;We're looking to use splunk to store audits of what software is on our systems.  In Windows, we're trying to use "&lt;CODE&gt;Get-WmiObject -Class Win32_Product&lt;/CODE&gt;" in powershell.  This is defined in my inputs.conf as a &lt;CODE&gt;[script://./bin/script.bat] stanza&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;The props.conf for this sourcetype is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SloshBurchsSourceType]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)Name
DATETIME_CONFIG = CURRENT
REPORT-SloshBurchsSourceType = SloshBurchsSourceType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A single event in splunk is coming in correctly as a block like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Name            : Adobe Shockwave Player 12.0
Vendor          : Adobe Systems, Inc
Version         : 12.0.4.144
Caption         : Adobe Shockwave Player 12.0
InstallLocation : C:\Windows\SysWOW64\Adobe\
InstallDate     : 20130917
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've set my transforms.conf to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SloshBurchsSourceType]
DELIMS="\r\n", ":"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This isn't working - I'm not getting any of the fields.  I'm guessing it's because of the : in the InstallLocation.&lt;/P&gt;

&lt;P&gt;I tried switching to this transform.conf but still nothing.  I'm guessing I'm using the regex wrong.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SloshBurchsSourceType]
REGEX = (?&amp;lt;_KEY_1&amp;gt;.+)\s+:\s+(?&amp;lt;_VALUE_1&amp;gt;.+)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want my sourcetype to automatically extract any "&lt;CODE&gt;name : value&lt;/CODE&gt;" pairs from this without me having to list out the field names.  I want splunk to dynamically detect the name value pairs in this sourcetype in the same way that is does, out of the box, for "&lt;CODE&gt;name=value&lt;/CODE&gt;" format.&lt;/P&gt;

&lt;P&gt;Any tips? Ideas what I'm doing wrong?&lt;/P&gt;

&lt;P&gt;Thanks for any responses!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 18:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124534#M25667</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-10-31T18:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sourcetype Challenges</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124535#M25668</link>
      <description>&lt;P&gt;Your LINEBREAKER setting is consuming the "Name" characters at the beginning of the event. I would avoid using LINEBREAKER. Try this instead for &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SloshBurchsSourceType]
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE = ^Name\s+\:
DATETIME_CONFIG = CURRENT
REPORT-SloshBurchsSourceType = SloshBurchsSourceType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think that your first version of &lt;CODE&gt;transforms.conf&lt;/CODE&gt; is probably fine.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 19:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124535#M25668</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-11-01T19:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sourcetype Challenges</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124536#M25669</link>
      <description>&lt;P&gt;The events were separated correctly.  The issue I am facing is how to separate the name : value pairs within the atomic events that I've created.  Sorry if that was unclear.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 14:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124536#M25669</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-11-12T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sourcetype Challenges</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124537#M25670</link>
      <description>&lt;P&gt;Well, since the string "Name:" is actually consumed by your LINEBREAKER setting, it will throw off all the field extractions. That's why I made this recommendation. Plus, your use of LINEBREAKER also makes your data look different in Splunk than it does in the original file, which could throw users off too.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Custom-Sourcetype-Challenges/m-p/124537#M25670</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-11-12T18:33:51Z</dc:date>
    </item>
  </channel>
</rss>

