<?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: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194179#M55948</link>
    <description>&lt;P&gt;ok i will take a look.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2015 10:18:58 GMT</pubDate>
    <dc:creator>stephane_cyrill</dc:creator>
    <dc:date>2015-03-25T10:18:58Z</dc:date>
    <item>
      <title>Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194175#M55944</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have here a log file with a header and I'm using transforms.conf to extract the fields, but I'm not getting the right results.&lt;/P&gt;

&lt;P&gt;for reference:&lt;/P&gt;

&lt;P&gt;my log file consist of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ARU|Portion|AR Text Sched|From Date|To Date|
02000000|02_AG0|SCAL MRU 02_AG0|02/01/20|12/31/20|
02001000|02_AG1|SCAL MRU 02_AG1|02/01/20|12/31/20|
02002000|02_AG2|SCAL MRU 02_AG2|02/01/20|12/31/20|
02003000|02_AG3|SCAL MRU 02_AG3|02/01/20|12/31/20|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I put props.conf both on:&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\local\props.conf&lt;BR /&gt;
C:\Program Files\Splunk\etc\app\Maynilad\local\props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rbil_mrsched]
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Custom
disabled = false
pulldown_type = true
INDEXED_EXTRACTIONS = PSV
REPORT-AutoHeader = rbil_mrsched_trans
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in my transforms.conf&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\local\transfoms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rbil_mrsched_trans]
DELIMS= "|"
FIELDS="RbillARU","|","RbillPortion","|","RbillARTextSched","|","RbillFromDate","|","RbillToDate","|"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Values should be&lt;BR /&gt;
RbillARU:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02000000
02001000
02002000
02003000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;RbillPortion:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02_AG0
02_AG1
02_AG2
02_AG3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;RbillARTextSched:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SCAL MRU 02_AG0
SCAL MRU 02_AG1
SCAL MRU 02_AG2
SCAL MRU 02_AG3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;RbillFromDate:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02/01/20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;RbillToDate:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12/31/20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but the results are: &lt;BR /&gt;
02000000 for RbillARU (correct)&lt;BR /&gt;
no values for RbillPortion&lt;BR /&gt;
SCAL MRU 02_AG0 for RbillPortion (wrong this should be the result for RbillARTextSched)&lt;BR /&gt;
12/31/20 for RbillARTextSched (wrong this should be the result for RbillToDate)&lt;BR /&gt;
no values/result for RbillFromDate&lt;BR /&gt;
no values/result for RbillToDate&lt;/P&gt;

&lt;P&gt;Please help me with this. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 05:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194175#M55944</guid>
      <dc:creator>shariinPH</dc:creator>
      <dc:date>2015-03-25T05:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194176#M55945</link>
      <description>&lt;P&gt;Hi, I want to try But i need your file.&lt;BR /&gt;
is it a csv?&lt;BR /&gt;
can you send it to&lt;BR /&gt;
 &lt;A href="mailto:cyrilleko@gmail.com"&gt;cyrilleko@gmail.com&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 09:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194176#M55945</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-03-25T09:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194177#M55946</link>
      <description>&lt;P&gt;Its a txtfile .. i'll send you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 09:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194177#M55946</guid>
      <dc:creator>shariinPH</dc:creator>
      <dc:date>2015-03-25T09:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194178#M55947</link>
      <description>&lt;P&gt;Hi , I have put your sample data in a text file that i indexed. you can use this regex to have your fields extracted as you like.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=txt | rex field=_raw "^(?P\\s+\\d+)\\|(?P[^\\|]+)\\|(?P[^\\|]+)\\|(?P[^\\|]+)\\|(?P[^\\|]+)"|table RbillARU RbillPortion RbillARTextSched RbillFromDate
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Mar 2015 09:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194178#M55947</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-03-25T09:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194179#M55948</link>
      <description>&lt;P&gt;ok i will take a look.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 10:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194179#M55948</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-03-25T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194180#M55949</link>
      <description>&lt;P&gt;hello, does it work on your machine?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 02:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194180#M55949</guid>
      <dc:creator>shariinPH</dc:creator>
      <dc:date>2015-03-26T02:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194181#M55950</link>
      <description>&lt;P&gt;You have specified INDEXED_EXTRACTIONS = PSV, Splunk should do the right thing automatically.&lt;/P&gt;

&lt;P&gt;You definitely don't need a transforms.conf (aside from it being incorrect), please review this &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime#Props.conf_attributes_for_structured_data"&gt;documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 05:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194181#M55950</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-03-26T05:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194182#M55951</link>
      <description>&lt;P&gt;with this i have to remove the configs on my transforms.conf?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 06:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194182#M55951</guid>
      <dc:creator>shariinPH</dc:creator>
      <dc:date>2015-03-26T06:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I get the right field extractions from a PSV file using auto header in transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194183#M55952</link>
      <description>&lt;P&gt;Yes, although it doesn't matter if it doesn't get referenced. &lt;BR /&gt;
I also wouldn't specify anything in &lt;CODE&gt;../etc/system/local&lt;/CODE&gt; but instead put all your configurations for this in a separate app context. Whatever you decide, definitely only have it ONE place.&lt;/P&gt;

&lt;P&gt;I would just try: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rbil_mrsched]
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
INDEXED_EXTRACTIONS = PSV
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should see that your events show up with the field names as defined in the header row of the PSV input file, assuming you specified &lt;STRONG&gt;sourcetype=rbil_mrsched&lt;/STRONG&gt; in your inputs.conf.&lt;/P&gt;

&lt;P&gt;If you don't like those field names, you can create field aliases on your search head, or use the rename command in your searches.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 06:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-get-the-right-field-extractions-from-a-PSV-file/m-p/194183#M55952</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-03-26T06:52:12Z</dc:date>
    </item>
  </channel>
</rss>

