<?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: need table format data from csv raw data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651023#M110586</link>
    <description>&lt;P&gt;&lt;SPAN&gt;what's the sourcetype of these data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The source of the data is from a powershell script which send output file (CSV) to specific location where splunk read that csv file as one event. That one event has all the list of directories and file counts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how is this sourcetype configurated?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Not sure about this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you also confirm how to use "&lt;SPAN&gt;"INDEXED_EXTRACTIONS = csv"." in splunk query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 15:30:00 GMT</pubDate>
    <dc:creator>ravir_jbp</dc:creator>
    <dc:date>2023-07-18T15:30:00Z</dc:date>
    <item>
      <title>How can I table format data from csv raw data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/650997#M110582</link>
      <description>&lt;P&gt;I have the below events getting generated which has list of file counts on diffrent directories with date. creating a table format output with headers "Directory" "date" and "Filecount". Need assitance in rex to orginzate this date in table format so that I can setup a dashboard for the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Directory","Date","FileCount" "E:\test\IEX\app1\Incoming","7/18/2023","12" "E:\test\IEX\Processed\Success","7/14/2023","11922" "E:\test\IEX\Processed\Success","7/15/2023","319"&lt;/P&gt;
&lt;P&gt;"E:\test\IEX\Processed\Success","7/16/2023","449" "E:\test\IEX\Processed\Success","7/17/2023","14264" "E:\test\IEX\Processed\Success","7/18/2023","414" "E:\test\IEX\Error","7/13/2023","170" "E:\test\IEX\Error","7/14/2023","176" "E:\test\IEX\Error","7/15/2023","1" "E:\test\IEX\Error","7/17/2023","146" "E:\test\IEX\Error","7/18/2023","3" "E:\test\IEX\Error","7/10/2023","244" "E:\test\IEX\Error","7/11/2023","194" "E:\test\IEX\Error","7/12/2023","189"&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 16:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/650997#M110582</guid>
      <dc:creator>ravir_jbp</dc:creator>
      <dc:date>2023-07-18T16:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: need table format data from csv raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/650998#M110583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229744"&gt;@ravir_jbp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you configure your sourcetype as CSV or you add to your sourcetype INDEXED_EXTRACTIONS = csv, you automaticall have the values in each column as fields.&lt;/P&gt;&lt;P&gt;otherwise, you could extract these fields as delimited fields.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/650998#M110583</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-18T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: need table format data from csv raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/650999#M110584</link>
      <description>&lt;P&gt;This is my query&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=application1 source="D:\\app1\\filecount.csv" earliest=-5m latest=now | table&amp;nbsp;&lt;SPAN class=""&gt;Directory&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;FileCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This query does not bring any output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;FYI.. These events are generating every 5 minutes. Which gives the complete files count on specific directories. I need to populate data (5 minute refresh interval ) in table format&amp;nbsp; on splunk dashboard.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/650999#M110584</guid>
      <dc:creator>ravir_jbp</dc:creator>
      <dc:date>2023-07-18T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: need table format data from csv raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651004#M110585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229744"&gt;@ravir_jbp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what's the sourcetype of these data?&lt;/P&gt;&lt;P&gt;how is this sourcetype configurated?&lt;/P&gt;&lt;P&gt;it must be csv or it must contain "INDEXED_EXTRACTIONS = csv".&lt;/P&gt;&lt;P&gt;otherwise, you have to follow these steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;run a search,&lt;/LI&gt;&lt;LI&gt;click on "&amp;gt;"&lt;/LI&gt;&lt;LI&gt;click on "event Actions"&lt;/LI&gt;&lt;LI&gt;Click on "Extract fields"&lt;/LI&gt;&lt;LI&gt;choose "Delimiters" and click on next,&lt;/LI&gt;&lt;LI&gt;follow the procedure to extract fields, identifying:&lt;UL&gt;&lt;LI&gt;delimiter,&lt;/LI&gt;&lt;LI&gt;header (if present),&lt;/LI&gt;&lt;LI&gt;field names.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;save the field extractions&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;then, after some minutes, you can use these fields.&lt;/P&gt;&lt;P&gt;Anyway, the best approach is to correctly configure your sourcetype for a csv data type&amp;nbsp;"INDEXED_EXTRACTIONS = csv".&lt;/P&gt;&lt;P&gt;for more information you can find many videos on internet.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651004#M110585</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-18T14:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: need table format data from csv raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651023#M110586</link>
      <description>&lt;P&gt;&lt;SPAN&gt;what's the sourcetype of these data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The source of the data is from a powershell script which send output file (CSV) to specific location where splunk read that csv file as one event. That one event has all the list of directories and file counts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how is this sourcetype configurated?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Not sure about this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you also confirm how to use "&lt;SPAN&gt;"INDEXED_EXTRACTIONS = csv"." in splunk query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651023#M110586</guid>
      <dc:creator>ravir_jbp</dc:creator>
      <dc:date>2023-07-18T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: need table format data from csv raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651069#M110591</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229744"&gt;@ravir_jbp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry but there's some misunderstandings:&lt;/P&gt;&lt;P&gt;at first I spoke about "sourcetype", not "source", they are two different things: sourcetype is usually defined in the input stanza where you run the Powershell script and it's the way that Splunk uses to define specifications and parsing rules of a Data Flow, for this reason, you should set the sourcetype in the input.conf stanza containing the run of the script to exactly define the specifications of your data.&lt;/P&gt;&lt;P&gt;Then, in props.conf you have to add the option "INDEXED_EXTRACTIONS = csv" that it isn't possible to use in the search (that you defined "query") and that permits to you to automatically extract all the fields.&lt;/P&gt;&lt;P&gt;As I said, you should search in the YouTube Splunk Channel some video that describes how to ingest and parse csv data, these are some examples:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=fKoAB6n_ivs&amp;amp;pp=ygUKc3BsdW5rIGNzdg%3D%3D" target="_blank"&gt;https://www.youtube.com/watch?v=fKoAB6n_ivs&amp;amp;pp=ygUKc3BsdW5rIGNzdg%3D%3D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=3kx0OGKy_XU&amp;amp;pp=ygUKc3BsdW5rIGNzdg%3D%3D" target="_blank"&gt;https://www.youtube.com/watch?v=3kx0OGKy_XU&amp;amp;pp=ygUKc3BsdW5rIGNzdg%3D%3D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=SfEDJj7Jgpg&amp;amp;pp=ugMICgJpdBABGAHKBQpzcGx1bmsgY3N2" target="_blank"&gt;https://www.youtube.com/watch?v=SfEDJj7Jgpg&amp;amp;pp=ugMICgJpdBABGAHKBQpzcGx1bmsgY3N2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but you can find more others.&lt;/P&gt;&lt;P&gt;About sourcetype configuration, you have to create the props.conf file containing all the information to correctly parse you Data Flow, starting from Timestamp definition, Timestamp format and "INDEXED_EXTRACTIONS = csv".&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 06:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-table-format-data-from-csv-raw-data/m-p/651069#M110591</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-19T06:28:34Z</dc:date>
    </item>
  </channel>
</rss>

