<?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 Not able to extract _raw data using props.conf and transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342029#M63003</link>
    <description>&lt;P&gt;Hello Splunk Gurus,&lt;/P&gt;

&lt;P&gt;I'm extracting the data from database-input (using Splunk DBX 3.1.0) and sourcing that to index "my_index". When I search from Splunk I see the following output:&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Splunk Search: *&lt;/EM&gt; index=my_index sourcetype=my_dbx_st source=test_tbl_dbx31_input | table _taw &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;BR /&gt;
2017-08-01 11:01:01.509, access_time="2017-03-30 6:44:16.0", process_id="PROC7678", internal_id="2436", internal_name="Test_Reports", user_id="487657"&lt;/P&gt;

&lt;P&gt;access_time = access_time="2017-03-30 6:44:16.0"&lt;BR /&gt;
process_id = process_id="PROC7678"&lt;BR /&gt;
internal_id = internal_id="2436"&lt;BR /&gt;
internal_name = internal_name="Test_Reports"&lt;BR /&gt;
user_id = user_id="487657"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[my_audit]&lt;BR /&gt;
SHOULD_LINE_MERGE=false&lt;BR /&gt;
KV_MODE=auto&lt;BR /&gt;
REPORT-my_audit_extract=my_audit_extractions&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[my_audit_extractions]&lt;BR /&gt;
DELIMS = ","&lt;BR /&gt;
FIELDS = default_time, access_time, process_id, internal_id, internal_name, user_id&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;BR /&gt;
I'm not able to extract _raw data using props.conf and transforms.conf here. Also you will notice that I had to use an extra field "default_time" in FIELDS sections because that field-value gets populated automatically as a first system-field.&lt;/P&gt;

&lt;P&gt;Am I missing any key properties in the props.conf or transforms.conf to get my field extracted properly as following?&lt;/P&gt;

&lt;P&gt;access_time="2017-03-30 6:44:16.0"&lt;BR /&gt;
process_id="PROC7678"&lt;BR /&gt;
internal_id="2436"&lt;BR /&gt;
internal_name="Test_Reports"&lt;BR /&gt;
user_id="487657"&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:09:04 GMT</pubDate>
    <dc:creator>kulsplunk</dc:creator>
    <dc:date>2020-09-29T15:09:04Z</dc:date>
    <item>
      <title>Not able to extract _raw data using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342029#M63003</link>
      <description>&lt;P&gt;Hello Splunk Gurus,&lt;/P&gt;

&lt;P&gt;I'm extracting the data from database-input (using Splunk DBX 3.1.0) and sourcing that to index "my_index". When I search from Splunk I see the following output:&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Splunk Search: *&lt;/EM&gt; index=my_index sourcetype=my_dbx_st source=test_tbl_dbx31_input | table _taw &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;BR /&gt;
2017-08-01 11:01:01.509, access_time="2017-03-30 6:44:16.0", process_id="PROC7678", internal_id="2436", internal_name="Test_Reports", user_id="487657"&lt;/P&gt;

&lt;P&gt;access_time = access_time="2017-03-30 6:44:16.0"&lt;BR /&gt;
process_id = process_id="PROC7678"&lt;BR /&gt;
internal_id = internal_id="2436"&lt;BR /&gt;
internal_name = internal_name="Test_Reports"&lt;BR /&gt;
user_id = user_id="487657"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[my_audit]&lt;BR /&gt;
SHOULD_LINE_MERGE=false&lt;BR /&gt;
KV_MODE=auto&lt;BR /&gt;
REPORT-my_audit_extract=my_audit_extractions&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[my_audit_extractions]&lt;BR /&gt;
DELIMS = ","&lt;BR /&gt;
FIELDS = default_time, access_time, process_id, internal_id, internal_name, user_id&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;BR /&gt;
I'm not able to extract _raw data using props.conf and transforms.conf here. Also you will notice that I had to use an extra field "default_time" in FIELDS sections because that field-value gets populated automatically as a first system-field.&lt;/P&gt;

&lt;P&gt;Am I missing any key properties in the props.conf or transforms.conf to get my field extracted properly as following?&lt;/P&gt;

&lt;P&gt;access_time="2017-03-30 6:44:16.0"&lt;BR /&gt;
process_id="PROC7678"&lt;BR /&gt;
internal_id="2436"&lt;BR /&gt;
internal_name="Test_Reports"&lt;BR /&gt;
user_id="487657"&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342029#M63003</guid>
      <dc:creator>kulsplunk</dc:creator>
      <dc:date>2020-09-29T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract _raw data using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342030#M63004</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/57934"&gt;@kulsplunk&lt;/a&gt;&lt;BR /&gt;
transforms.conf&lt;BR /&gt;
[my_audit_extractions]&lt;BR /&gt;
REGEX = \d+-\d+-\d+\s\d+:\d+:+d.\d+\saccess_time=\"(\d+-\d+-\d+\s\d+:\d+:\d+.\d+)"\,\sprocess_id=\"(\S+)\"\,\sinternal_id=\"(\d+)\"\,\sinternal_name=\"(\S+)\"\,\suser_id="(\d+)\"&lt;BR /&gt;
FORMAT= access_time::$1 process_id::$2 internal_id::$3 internal_name::$4 user_id::$5&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;index=my_index sourcetype=my_dbx_st source=test_tbl_dbx31_input | table access_time process_id internal_id internal_name user_id&lt;/P&gt;

&lt;P&gt;because you are using KV_MODE=auto so that all the fields will be extracted already. so you don't want to use transforms at all&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342030#M63004</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract _raw data using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342031#M63005</link>
      <description>&lt;P&gt;You raw data has classic key-value pair format and field should already be extracted. Are you setting up just to get the default_time field? Also, your current transform.conf entry is treating raw data as CSV, so even the field header will appear as value. My suggestion would to just setup a props.conf &lt;CODE&gt;EXTRACT-defaulttime = ^(&amp;lt;default_time&amp;gt;[^,]+)&lt;/CODE&gt; for default_time and get rid of the transforms.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342031#M63005</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract _raw data using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342032#M63006</link>
      <description>&lt;P&gt;Thanks much! I just got rid of transforms.conf and it worked fine.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 19:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342032#M63006</guid>
      <dc:creator>kulsplunk</dc:creator>
      <dc:date>2017-08-02T19:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract _raw data using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342033#M63007</link>
      <description>&lt;P&gt;Thanks a lot for your answer! I got rid of transforms.conf and added the EXTRACT-defaulttime to extract the default time.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 19:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-extract-raw-data-using-props-conf-and-transforms/m-p/342033#M63007</guid>
      <dc:creator>kulsplunk</dc:creator>
      <dc:date>2017-08-02T19:54:06Z</dc:date>
    </item>
  </channel>
</rss>

