<?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: CSV Field Extraction in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/540407#M37040</link>
    <description>&lt;P&gt;Do you know if there are any tools out there or someone I can get to assist in writing this if I provide the csv? I am completely unfamiliar with transforms and REGEX.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 15:33:24 GMT</pubDate>
    <dc:creator>teco_akelly</dc:creator>
    <dc:date>2021-02-18T15:33:24Z</dc:date>
    <item>
      <title>CSV Field Extraction</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/539580#M36950</link>
      <description>&lt;P&gt;I've got a non-standard CSV log file that has no headers. Depending on the first field of each line determines what number and order of the fields are behind it. How can I have splunk assign field names to the data depending on the first field in a given row?&lt;/P&gt;&lt;P&gt;An example would be:&lt;/P&gt;&lt;P&gt;Operation Record,Timestamp,Tagname,Decription,Station&lt;/P&gt;&lt;P&gt;Alarm Confirm,Timestamp,Tagname,Station,Severity,&lt;/P&gt;&lt;P&gt;Process Alarm,Timestamp,Tagname,Description,Value&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 21:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/539580#M36950</guid>
      <dc:creator>teco_akelly</dc:creator>
      <dc:date>2021-02-11T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Field Extraction</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/539703#M36965</link>
      <description>&lt;P&gt;That's not a true CSV file, even though the values are separated by commas.&lt;/P&gt;&lt;P&gt;I would try using transforms with REGEX to parse those rows.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/539703#M36965</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-02-12T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Field Extraction</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/540407#M37040</link>
      <description>&lt;P&gt;Do you know if there are any tools out there or someone I can get to assist in writing this if I provide the csv? I am completely unfamiliar with transforms and REGEX.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 15:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/540407#M37040</guid>
      <dc:creator>teco_akelly</dc:creator>
      <dc:date>2021-02-18T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Field Extraction</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/540433#M37042</link>
      <description>&lt;P&gt;Many of us like regex101.com for help writing and testing regular expressions.&lt;/P&gt;&lt;P&gt;I think you'll need a transform for each type of records in the CSV file.&amp;nbsp; The transforms would look something like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[parseOperation]
REGEX = Operation Record,([^,]+),([^,]+),([^,]+),([^,]+)
FORMAT = Timestamp::$1 Tagname::$2 Description::$3 Station::$4

[parseAlarm]
REGEX = Alarm Confirm,([^,]+),([^,]+),([^,]+),([^,]+)
FORMAT = Timestamp::$1 Tagname::$2 Station::$3 Severity::$4

[parseProcess]
REGEX = Process Alarm,([^,]+),([^,]+),([^,]+),([^,]+)
FORMAT = Timestamp::$1 Tagname::$2 Description::$3 Value::$4&lt;/LI-CODE&gt;&lt;P&gt;Then a props.conf attribute would reference the transforms.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANSFORMS-parsers = parseOperation, parseAlarm, parseProcess&lt;/LI-CODE&gt;&lt;P&gt;See the Admin Manual for more information about transforms.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 19:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSV-Field-Extraction/m-p/540433#M37042</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-02-18T19:31:03Z</dc:date>
    </item>
  </channel>
</rss>

