<?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 make a  table for a csv in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747940#M241925</link>
    <description>&lt;P&gt;Hi my data is comma delimited&amp;nbsp; &amp;nbsp;, there&amp;nbsp; are 2 rows with a header. I'fd like the columns to be split by the comma into a more readable table. Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOG_SEQ,LOG_DATE,LOG_PKG,LOG_PROC,LOG_ID,LOG_MSG,LOG_ADDL_MSG,LOG_MSG_TYPE,LOG_SQLERRM,LOG_SQLCODE,LOG_RECEIPT_TABLE_TYPE,LOG_RECEIPT_NUMBER,LOG_BATCH_NUMBER,LOG_RECORDS_ATTEMPTED,sOG_RECORDS_SUCCESSFUL,LOG_RECORDS_ERROR, 37205289,20250612,import_ddd,proposal_dataload (FAS),,GC Batch: 615 Rows Rejected 6,,W,,0,,,,0,0,0 37205306,20250612,hu_givecampus_import_HKS,proposal_dataload (HKS),,GC Batch: 615 - Nothing to process. Skipping DataLoader operation,,W,,0,,,,0,0,0 37205315,20250612,ddd,assignment_dataload (FAS),,GC Batch: 615 Rows Rejected 3,See harris.hu_gc_assignments_csv,W,,0,,,,0,0,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried a few things , currently I have :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;((index="splunkdata-dev") source="/d01/log/log_splunk_feed.log" )&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;| eval my_field_split = split(index, ",") , log_seq = mvindex(my_field_split, 0)&lt;/P&gt;&lt;P&gt;, log_date = mvindex(my_field_split, 1)&lt;/P&gt;&lt;P&gt;,log_pkg= mvindex(my_field_split, 2)&lt;/P&gt;&lt;P&gt;,log_proc = mvindex(my_field_split, 3)&lt;/P&gt;&lt;P&gt;,log_msg = mvindex(my_field_split, 4)&lt;/P&gt;&lt;P&gt;,log_addl_msg= mvindex(my_field_split, 6)&lt;/P&gt;&lt;P&gt;, log_msg_type = mvindex(my_field_split, 7)&lt;/P&gt;&lt;P&gt;,log_sqlerrm = mvindex(my_field_split, &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;, log_sqlcode= mvindex(my_field_split, 9)&amp;nbsp; | table [|makeresults |&amp;nbsp; eval search ="log_seq log_date log_pkg log_proc log_id log_msg log_addl_msg log_msg_type log_sqlerrm log_sqlcode" | table search ] table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2025 13:59:42 GMT</pubDate>
    <dc:creator>Soonerseast</dc:creator>
    <dc:date>2025-06-13T13:59:42Z</dc:date>
    <item>
      <title>make a  table for a csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747940#M241925</link>
      <description>&lt;P&gt;Hi my data is comma delimited&amp;nbsp; &amp;nbsp;, there&amp;nbsp; are 2 rows with a header. I'fd like the columns to be split by the comma into a more readable table. Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOG_SEQ,LOG_DATE,LOG_PKG,LOG_PROC,LOG_ID,LOG_MSG,LOG_ADDL_MSG,LOG_MSG_TYPE,LOG_SQLERRM,LOG_SQLCODE,LOG_RECEIPT_TABLE_TYPE,LOG_RECEIPT_NUMBER,LOG_BATCH_NUMBER,LOG_RECORDS_ATTEMPTED,sOG_RECORDS_SUCCESSFUL,LOG_RECORDS_ERROR, 37205289,20250612,import_ddd,proposal_dataload (FAS),,GC Batch: 615 Rows Rejected 6,,W,,0,,,,0,0,0 37205306,20250612,hu_givecampus_import_HKS,proposal_dataload (HKS),,GC Batch: 615 - Nothing to process. Skipping DataLoader operation,,W,,0,,,,0,0,0 37205315,20250612,ddd,assignment_dataload (FAS),,GC Batch: 615 Rows Rejected 3,See harris.hu_gc_assignments_csv,W,,0,,,,0,0,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried a few things , currently I have :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;((index="splunkdata-dev") source="/d01/log/log_splunk_feed.log" )&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;| eval my_field_split = split(index, ",") , log_seq = mvindex(my_field_split, 0)&lt;/P&gt;&lt;P&gt;, log_date = mvindex(my_field_split, 1)&lt;/P&gt;&lt;P&gt;,log_pkg= mvindex(my_field_split, 2)&lt;/P&gt;&lt;P&gt;,log_proc = mvindex(my_field_split, 3)&lt;/P&gt;&lt;P&gt;,log_msg = mvindex(my_field_split, 4)&lt;/P&gt;&lt;P&gt;,log_addl_msg= mvindex(my_field_split, 6)&lt;/P&gt;&lt;P&gt;, log_msg_type = mvindex(my_field_split, 7)&lt;/P&gt;&lt;P&gt;,log_sqlerrm = mvindex(my_field_split, &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;, log_sqlcode= mvindex(my_field_split, 9)&amp;nbsp; | table [|makeresults |&amp;nbsp; eval search ="log_seq log_date log_pkg log_proc log_id log_msg log_addl_msg log_msg_type log_sqlerrm log_sqlcode" | table search ] table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 13:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747940#M241925</guid>
      <dc:creator>Soonerseast</dc:creator>
      <dc:date>2025-06-13T13:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: make a  table for a csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747941#M241926</link>
      <description>&lt;P&gt;Please put the query in a code block so it's easier to read and to avoid it being rendered in emoticons.&lt;/P&gt;&lt;P&gt;How is this query not working for you?&amp;nbsp; What are the expected results and what results so you get?&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;split&lt;/FONT&gt; function should not be using 'index' as the first argument.&amp;nbsp; The value of that field, "splunkdata-dev" does not contain any commas.&amp;nbsp; You probably should use _raw.&lt;/P&gt;&lt;P&gt;What is the intention of the subsearch in the &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; command?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 14:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747941#M241926</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-06-13T14:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: make a  table for a csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747942#M241927</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310925"&gt;@Soonerseast&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;why are you not using the INDEXED_EXTRACTION = csv?&lt;/P&gt;&lt;P&gt;anyway, you can put in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
HEADER_FIELD_LINE_NUMBER=1
FIELD_DELIMITER=,
FIELD_QUOTE="&lt;/LI-CODE&gt;&lt;P&gt;if eventually, yo don't need the header as an event, you can remove it,&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 14:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747942#M241927</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-06-13T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: make a  table for a csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747948#M241929</link>
      <description>&lt;P&gt;As I always say, do not treat structured data like text. &amp;nbsp;split is not the tool for this job. &amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;suggests INDEXED_EXTRACTION and a way to set up extraction in props.conf. &amp;nbsp;Short of these, you can also use &lt;A href="https://help.splunk.com/en/splunk-enterprise/search/spl-search-reference/latest/search-commands/multikv" target="_blank" rel="noopener"&gt;multikv&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| multikv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 15:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/make-a-table-for-a-csv/m-p/747948#M241929</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-06-13T15:44:39Z</dc:date>
    </item>
  </channel>
</rss>

