<?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 props.conf $ bad character - Help Wanted in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-bad-character-Help-Wanted/m-p/64270#M96899</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;Hope you can help!&lt;/P&gt;

&lt;P&gt;There is data in our Oracle audit file that we want to add to Fields. It has a Dollar sign, half way through, and it is giving me a bad character error. Here's an example of what is in the aud files:&lt;/P&gt;

&lt;P&gt;OS$USERID: [5] "FREDYF"&lt;/P&gt;

&lt;P&gt;Any thoughts on what I can do to make an exception and add this as a field?&lt;/P&gt;

&lt;P&gt;I entered the following in props.conf.&lt;/P&gt;

&lt;P&gt;[source::....aud]&lt;/P&gt;

&lt;P&gt;EXTRACT-osuserid = OS$USERID:(?&lt;OS&gt;[[0-9]+] "[^"]+")&lt;/OS&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2012 14:56:07 GMT</pubDate>
    <dc:creator>jrialto</dc:creator>
    <dc:date>2012-12-14T14:56:07Z</dc:date>
    <item>
      <title>props.conf $ bad character - Help Wanted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-bad-character-Help-Wanted/m-p/64270#M96899</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;Hope you can help!&lt;/P&gt;

&lt;P&gt;There is data in our Oracle audit file that we want to add to Fields. It has a Dollar sign, half way through, and it is giving me a bad character error. Here's an example of what is in the aud files:&lt;/P&gt;

&lt;P&gt;OS$USERID: [5] "FREDYF"&lt;/P&gt;

&lt;P&gt;Any thoughts on what I can do to make an exception and add this as a field?&lt;/P&gt;

&lt;P&gt;I entered the following in props.conf.&lt;/P&gt;

&lt;P&gt;[source::....aud]&lt;/P&gt;

&lt;P&gt;EXTRACT-osuserid = OS$USERID:(?&lt;OS&gt;[[0-9]+] "[^"]+")&lt;/OS&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 14:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-bad-character-Help-Wanted/m-p/64270#M96899</guid>
      <dc:creator>jrialto</dc:creator>
      <dc:date>2012-12-14T14:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf $ bad character - Help Wanted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-bad-character-Help-Wanted/m-p/64271#M96900</link>
      <description>&lt;P&gt;Per the documentation, the following is what is allowed:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Valid characters for field names are a-z, A-Z, 0-9, or _.&lt;BR /&gt;
Field names cannot begin with 0-9 or _ . &lt;BR /&gt;
Leading underscores are reserved for Splunk's internal variables. &lt;BR /&gt;
International characters are not allowed.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In your extract, you will want to do this: &lt;CODE&gt;EXTRACT-osuserid = OS$USERID:(?&amp;lt;os_userid&amp;gt;[[0-9]+] "[^"]+")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This creates a field &lt;CODE&gt;"os_userid"&lt;/CODE&gt; which conforms to the standard.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Use_proper_field_name_syntax" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Use_proper_field_name_syntax&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 15:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-bad-character-Help-Wanted/m-p/64271#M96900</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-12-14T15:26:17Z</dc:date>
    </item>
  </channel>
</rss>

