<?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 pipe separated instead of csv in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/pipe-separated-instead-of-csv/m-p/56107#M179837</link>
    <description>&lt;H2&gt;I was wondering if it is possible to build a regex for a pipe separated file…  Where the Header row carries the name of the field. Example – &lt;/H2&gt;

&lt;P&gt;EmployeeID|FirstName|LastName|MiddleName|GivenName|EmployeeStatus|EmployeeType|Action|EffectiveDate|Hire_Date|TerminationDate|RehireDate|CO_ID|Paygroup|DISTRICT|OpsDistrict|Store|JobCode|Title|Department|Country|HiringManager_Emp_ID|Supervisor_Emp_ID|StoreMenuLevel|UserRegion|UserDistrict|EmployeeClass|HomeDeptName|ManagerLevelCode|LastModifiedDate||ExpBatchDate&lt;BR /&gt;
013216|Corey|Forey|M||A|F|PAY|2012-07-01|1999-04-03|1900-01-01|1900-01-01|GCS|GC1|033|033|339|1071|Operations Manager|575000|NULL|32342|32342|9|2|033|OPS|Ops Managers|3|2012-07-17|2013-03-08&lt;BR /&gt;
013243|Jose|Fose|M||A|F|PAY|2012-07-01|1999-04-05|1900-01-01|1900-01-01|GCS|GC1|015|015|226|1983|Sales Associate|415000|NULL|51184|51184|6|1|015|SLS|Asst Manager|6|2013-03-01|2013-03-08&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;It of course works fine if I convert the file to a csv file. So basically I want to use the csv source type but use “|” instead of comma…&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:28:57 GMT</pubDate>
    <dc:creator>chetanvartak</dc:creator>
    <dc:date>2020-09-28T13:28:57Z</dc:date>
    <item>
      <title>pipe separated instead of csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pipe-separated-instead-of-csv/m-p/56107#M179837</link>
      <description>&lt;H2&gt;I was wondering if it is possible to build a regex for a pipe separated file…  Where the Header row carries the name of the field. Example – &lt;/H2&gt;

&lt;P&gt;EmployeeID|FirstName|LastName|MiddleName|GivenName|EmployeeStatus|EmployeeType|Action|EffectiveDate|Hire_Date|TerminationDate|RehireDate|CO_ID|Paygroup|DISTRICT|OpsDistrict|Store|JobCode|Title|Department|Country|HiringManager_Emp_ID|Supervisor_Emp_ID|StoreMenuLevel|UserRegion|UserDistrict|EmployeeClass|HomeDeptName|ManagerLevelCode|LastModifiedDate||ExpBatchDate&lt;BR /&gt;
013216|Corey|Forey|M||A|F|PAY|2012-07-01|1999-04-03|1900-01-01|1900-01-01|GCS|GC1|033|033|339|1071|Operations Manager|575000|NULL|32342|32342|9|2|033|OPS|Ops Managers|3|2012-07-17|2013-03-08&lt;BR /&gt;
013243|Jose|Fose|M||A|F|PAY|2012-07-01|1999-04-05|1900-01-01|1900-01-01|GCS|GC1|015|015|226|1983|Sales Associate|415000|NULL|51184|51184|6|1|015|SLS|Asst Manager|6|2013-03-01|2013-03-08&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;It of course works fine if I convert the file to a csv file. So basically I want to use the csv source type but use “|” instead of comma…&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pipe-separated-instead-of-csv/m-p/56107#M179837</guid>
      <dc:creator>chetanvartak</dc:creator>
      <dc:date>2020-09-28T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: pipe separated instead of csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pipe-separated-instead-of-csv/m-p/56108#M179838</link>
      <description>&lt;P&gt;You could use a props/transform if you reuse the same file for output.&lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[your_sourcetype]&lt;BR /&gt;
REPORT-pullpipes = st-pull-pipe&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In transforms.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[st-pull-pipe]&lt;BR /&gt;
DELIMS = "|"&lt;BR /&gt;
FIELDS = "EmployeeID", "FirstName", "LastName", "MiddleName", etc.....&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 19:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pipe-separated-instead-of-csv/m-p/56108#M179838</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-03-08T19:37:30Z</dc:date>
    </item>
  </channel>
</rss>

