<?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: Creating a table with unique rows base upon unique fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677501#M231673</link>
    <description>&lt;P&gt;Do you have some custom extraction in this sourcetype that is preventing Splunk from automatically extract these fields? &amp;nbsp;With the exception of a typo in your data sample (Filed_Type should be Field_Type as the other rows), the following is an emulation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval data = split("Field-Type=F_Type_1,.....,Section=F_Type_1_Value
Field-Type=F_Type_2,.....,Section=F_Type_2_Value
Field-Type=F_Type_3,.....,Section=F_Type_3_Value", "
")
| mvexpand data
| rename data AS _raw
| extract
``` data emulation above ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the extract is implied in most sourcetypes.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Field_Type&lt;/TD&gt;&lt;TD&gt;Section&lt;/TD&gt;&lt;TD&gt;_raw&lt;/TD&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F_Type_1&lt;/TD&gt;&lt;TD&gt;F_Type_1_Value&lt;/TD&gt;&lt;TD&gt;Field-Type=F_Type_1,.....,Section=F_Type_1_Value&lt;/TD&gt;&lt;TD&gt;2024-02-13 16:15:12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F_Type_2&lt;/TD&gt;&lt;TD&gt;F_Type_2_Value&lt;/TD&gt;&lt;TD&gt;Field-Type=F_Type_2,.....,Section=F_Type_2_Value&lt;/TD&gt;&lt;TD&gt;2024-02-13 16:15:12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F_Type_3&lt;/TD&gt;&lt;TD&gt;F_Type_3_Value&lt;/TD&gt;&lt;TD&gt;Field-Type=F_Type_3,.....,Section=F_Type_3_Value&lt;/TD&gt;&lt;TD&gt;2024-02-13 16:15:12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Are you not getting fields Field_Type and Section (which in your illustration of desired results is just Field-Value)? &amp;nbsp;There should be no regex needed. (Also, regex is not the best tool for this rigidly formatted data.)&lt;/P&gt;&lt;P&gt;If you already get Field_Type and Section, the following will give you what you illustrated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort host _time
| rename Field_Type as Field-Type, Section as Field-Value
| table _time host Field-Type Field-Value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 00:25:08 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2024-02-14T00:25:08Z</dc:date>
    <item>
      <title>Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677488#M231668</link>
      <description>&lt;P&gt;I am relatively new to the Splunk coding space so bare with me in regards to my inquiry.&lt;/P&gt;&lt;P&gt;Currently I am trying to create a table, each row would have the _time, host, and a unique field extracted from the entry:&lt;/P&gt;&lt;P&gt;_Time&amp;nbsp; &amp;nbsp;Host&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Field-Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Field-Value&lt;/P&gt;&lt;P&gt;00:00&amp;nbsp; &amp;nbsp; Unique_Host_1&amp;nbsp; &amp;nbsp;F_Type_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F_Type_1_Value&lt;/P&gt;&lt;P&gt;00:00&amp;nbsp; &amp;nbsp; Unique_Host_1&amp;nbsp; &amp;nbsp;F_Type_2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F_Type_2_Value&lt;/P&gt;&lt;P&gt;00:00&amp;nbsp; &amp;nbsp; Unique_Host_1&amp;nbsp; &amp;nbsp;F_Type_3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F_Type_3_Value&lt;/P&gt;&lt;P&gt;00:00&amp;nbsp; &amp;nbsp; Unique_Host_2&amp;nbsp; &amp;nbsp;F_Type_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F_Type_1_Value&lt;/P&gt;&lt;P&gt;00:00&amp;nbsp; &amp;nbsp; Unique_Host_2&amp;nbsp; &amp;nbsp;F_Type_2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F_Type_2_Value&lt;/P&gt;&lt;P&gt;00:00&amp;nbsp; &amp;nbsp; Unique_Host_2&amp;nbsp; &amp;nbsp;F_Type_3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F_Type_3_Value&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;The data given for each server:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Field-Type=F_Type_1&lt;/SPAN&gt;&lt;SPAN&gt;,.....&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;Section=F_Type_1_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Field-Type=F_Type_2&lt;/SPAN&gt;&lt;SPAN&gt;,.....&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;SPAN class=""&gt;Section=F_Type_2_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Filed-Type=F_Type_3&lt;/SPAN&gt;&lt;SPAN&gt;,.....,&lt;SPAN class=""&gt;Section=F_Type_3_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have created 3 field extractions for F-Type Values:&lt;/P&gt;&lt;P&gt;(.|\n)*?\bF_Type_1.*?\b Section=(?&amp;lt;F_Type_1_Value&amp;gt;-?\d+)&lt;/P&gt;&lt;P&gt;This is what I have done so far for the table:&lt;/P&gt;&lt;P&gt;index="nothing" source-type="nothing" | first( F_Type_1) by host&lt;/P&gt;&lt;P&gt;I am not sure this is the best approach, and I can also refine the field extraction if needed.&lt;/P&gt;&lt;P&gt;Generally, my thought process follows:&lt;BR /&gt;Source&lt;BR /&gt;| Obtain first entries for all the hosts&lt;BR /&gt;| Extract fields values&lt;BR /&gt;| Create table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I am currently hitting a road block in the syntax to create rows for each of the unique Field-Types and their value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 21:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677488#M231668</guid>
      <dc:creator>Ho_Wai_Yung</dc:creator>
      <dc:date>2024-02-13T21:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677501#M231673</link>
      <description>&lt;P&gt;Do you have some custom extraction in this sourcetype that is preventing Splunk from automatically extract these fields? &amp;nbsp;With the exception of a typo in your data sample (Filed_Type should be Field_Type as the other rows), the following is an emulation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval data = split("Field-Type=F_Type_1,.....,Section=F_Type_1_Value
Field-Type=F_Type_2,.....,Section=F_Type_2_Value
Field-Type=F_Type_3,.....,Section=F_Type_3_Value", "
")
| mvexpand data
| rename data AS _raw
| extract
``` data emulation above ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the extract is implied in most sourcetypes.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Field_Type&lt;/TD&gt;&lt;TD&gt;Section&lt;/TD&gt;&lt;TD&gt;_raw&lt;/TD&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F_Type_1&lt;/TD&gt;&lt;TD&gt;F_Type_1_Value&lt;/TD&gt;&lt;TD&gt;Field-Type=F_Type_1,.....,Section=F_Type_1_Value&lt;/TD&gt;&lt;TD&gt;2024-02-13 16:15:12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F_Type_2&lt;/TD&gt;&lt;TD&gt;F_Type_2_Value&lt;/TD&gt;&lt;TD&gt;Field-Type=F_Type_2,.....,Section=F_Type_2_Value&lt;/TD&gt;&lt;TD&gt;2024-02-13 16:15:12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F_Type_3&lt;/TD&gt;&lt;TD&gt;F_Type_3_Value&lt;/TD&gt;&lt;TD&gt;Field-Type=F_Type_3,.....,Section=F_Type_3_Value&lt;/TD&gt;&lt;TD&gt;2024-02-13 16:15:12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Are you not getting fields Field_Type and Section (which in your illustration of desired results is just Field-Value)? &amp;nbsp;There should be no regex needed. (Also, regex is not the best tool for this rigidly formatted data.)&lt;/P&gt;&lt;P&gt;If you already get Field_Type and Section, the following will give you what you illustrated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort host _time
| rename Field_Type as Field-Type, Section as Field-Value
| table _time host Field-Type Field-Value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 00:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677501#M231673</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-02-14T00:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677538#M231678</link>
      <description>&lt;P&gt;It depends what you mean by first - if you want the first event returned by the search, this is going to be the latest as events are returned newest first - if you want the first event in time, then you could sort by _time first.&lt;/P&gt;&lt;P&gt;In both cases, you could then use dedup which keeps the first event for each unique field values, in your instance you want host and field type&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dedup Host Field-Type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 08:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677538#M231678</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-14T08:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677595#M231688</link>
      <description>&lt;P&gt;For clarification, I am currently using the SplunkForwarder to monitor a custom log file which auto-updates every 10 seconds. This custom log file is monitored in multiple hosts.&lt;/P&gt;&lt;P&gt;After looking my previous example, I incorrectly stated the data format; this is the correct data structure displayed in Splunk:&lt;/P&gt;&lt;P&gt;TimeStamp&lt;BR /&gt;&lt;SPAN&gt;Component=F_Type_1,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Section_5&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;SPAN&gt;F_Type_1_Section_5_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Component=F_Type_2,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,Section_5&lt;SPAN class=""&gt;=F_Type_2_Section_5_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Component=F_Type_3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,Section_5&lt;SPAN class=""&gt;=F_Type_3_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There are 4 other sections, but for brevity, the only value I am getting from each component is the last section.&lt;/P&gt;&lt;P&gt;If there is a better way of structuring the data so Splunk can auto detect the new fields, rather than using regex extraction, that would be wonderful.&lt;BR /&gt;&lt;BR /&gt;Splunk will be getting the latest entry for each hosts:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE width="683px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Host&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;Component&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;Value&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;Time&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Unique_Host_1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&lt;SPAN&gt;F_Type_1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;F_Type_1_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;00:00:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Unique_Host_1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&lt;SPAN&gt;F_Type_2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;F_Type_2_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;00:00:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Unique_Host_1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&lt;SPAN&gt;F_Type_3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;F_Type_3_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;00:00:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Unique_Host_2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&lt;SPAN&gt;F_Type_1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;F_Type_1_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;00:00:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Unique_Host_2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&lt;SPAN&gt;F_Type_2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;F_Type_2_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;00:00:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;Unique_Host_2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&lt;SPAN&gt;F_Type_3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;F_Type_3_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;00:00:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="147.078px"&gt;&lt;P&gt;.....&lt;/P&gt;&lt;/TD&gt;&lt;TD width="186.938px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.609px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="133.375px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Splunk table creation would be something like this:&lt;/P&gt;&lt;PRE&gt;index="hosts" sourcetype="logname"&lt;BR /&gt;| eval data=&lt;SPAN class=""&gt;&lt;SPAN&gt;split("Field-Type=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value&lt;BR /&gt;Field-Type=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value&lt;BR /&gt;Field-Type=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value", "&lt;BR /&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;|&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;stats latest(data) by host&lt;BR /&gt;|&amp;nbsp;mxexpand&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;| rename Section_5 AS Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;|&amp;nbsp;extract&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 18:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677595#M231688</guid>
      <dc:creator>Ho_Wai_Yung</dc:creator>
      <dc:date>2024-02-14T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677599#M231690</link>
      <description>&lt;P&gt;There is now a conflict between the corrected mock data and the emulation pseudo code. &amp;nbsp;The former seems to imply that &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;Component&lt;/EM&gt;&lt;/FONT&gt; contains what you want as &lt;FONT face="courier new,courier"&gt;Field-Type&lt;/FONT&gt;, but the latter directly uses &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;Field-Type&lt;/EM&gt;&lt;/FONT&gt; as field name.&lt;/P&gt;&lt;P&gt;Let's take baby steps. &amp;nbsp;First, can you confirm that your _raw events look like, or contain something like the following emulation? In other words, the mock data you give, are they emulating _raw?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval data=split("Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value
Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value
Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value", "
")
| mvexpand data
| rename data AS _raw
``` emulation assuming Splunk "forgets" to extract ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_raw&lt;/TD&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 11:10:02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 11:10:02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 11:10:02&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;(See how similar this is from my previous emulation? You can simply adopt the formula with the field names.) &amp;nbsp;Whether you use forwarder or some other mechanism to ingest data is not a factor in Splunk extraction. &amp;nbsp;But if Splunk does NOT give&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Component&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Section_5&lt;/FONT&gt;, you should dig deeper with admin. &amp;nbsp;Maybe post the props.conf that contains this source type. &amp;nbsp;You can always run &lt;FONT face="courier new,courier"&gt;| extract&lt;/FONT&gt; with _raw. &amp;nbsp;But it it would be so much better if you don't have to.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;TimeStamp&lt;BR /&gt;&lt;SPAN&gt;Component=F_Type_1,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Section_5&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;SPAN&gt;F_Type_1_Section_5_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Component=F_Type_2,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,Section_5&lt;SPAN class=""&gt;=F_Type_2_Section_5_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Component=F_Type_3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,Section_5&lt;SPAN class=""&gt;=F_Type_3_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Or, do you mean all these 3 (and more) lines form &lt;STRONG&gt;one single _raw event&lt;/STRONG&gt;? In other words, does this emulation better resembles your _raw events?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="TimeStamp
Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value
Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value
Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_raw&lt;/TD&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TimeStamp Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 11:20:05&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677599#M231690</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-02-14T19:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677600#M231691</link>
      <description>&lt;P&gt;For the &lt;STRONG&gt;one single _raw event&lt;/STRONG&gt; would be the following:&lt;/P&gt;&lt;PRE&gt;eval _raw="TimeStamp
Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value
Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value
Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value"&lt;/PRE&gt;&lt;P&gt;My apologies, I didn't include the TimeStamp since it didn't appeared important when handling evaluating the data.&lt;/P&gt;&lt;P&gt;Still trying to figure out the lingo for Splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677600#M231691</guid>
      <dc:creator>Ho_Wai_Yung</dc:creator>
      <dc:date>2024-02-14T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677602#M231692</link>
      <description>&lt;P&gt;I'll see if I can remove the time stamps in the raw data, since it is causing parsing issues.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677602#M231692</guid>
      <dc:creator>Ho_Wai_Yung</dc:creator>
      <dc:date>2024-02-14T19:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677604#M231694</link>
      <description>&lt;P&gt;You do not need to remove timestamp per se. &amp;nbsp;Just let us know whether the mock data is a single, multi-line event (emulation 2) or multiple events (emulation 1)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677604#M231694</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-02-14T19:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677606#M231696</link>
      <description>&lt;P&gt;It appears no props.conf has been created, I'll talk more with the Admin.&lt;BR /&gt;&lt;BR /&gt;As for the &lt;STRONG&gt;Raw Data&lt;/STRONG&gt;,&amp;nbsp;It's Single Multi-line event:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;TimeStamp&lt;BR /&gt;&lt;SPAN&gt;Component=F_Type_1,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Section_5&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;SPAN&gt;F_Type_1_Section_5_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Component=F_Type_2,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,Section_5&lt;SPAN class=""&gt;=F_Type_2_Section_5_Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Component=F_Type_3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;SPAN class=""&gt;.....&lt;/SPAN&gt;,Section_5&lt;SPAN class=""&gt;=F_Type_3_Section_5_Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But in the emulation is to ignore that TimeStamp:&lt;/P&gt;&lt;PRE&gt;| makeresults
| eval data=split("Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value
Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value
Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value", "
")
| mvexpand data
| rename data AS _raw
``` emulation assuming Splunk "forgets" to extract ```&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 20:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677606#M231696</guid>
      <dc:creator>Ho_Wai_Yung</dc:creator>
      <dc:date>2024-02-14T20:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677610#M231697</link>
      <description>&lt;P&gt;Multi-line explains why default Component and Section_5 do not contain all data. &amp;nbsp;Do not worry about props.conf, then. &amp;nbsp;This is what you can do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort host _time
| eval data = split(_raw, "
")
| eval data = mvfilter(match(data, "^Component="))
| mvexpand data
| rename data AS _raw
| extract
| rename Section_5 AS Value
| table host Component Value _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an emulation you can play with and compare with real data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="TimeStamp
Component=F_Type_1,.....,Section_5=F_Type_1_Section_5_Value
Component=F_Type_2,.....,Section_5=F_Type_2_Section_5_Value
Component=F_Type_3,.....,Section_5=F_Type_3_Section_5_Value"
``` data emulation above ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is then&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;host&lt;/TD&gt;&lt;TD&gt;Component&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;F_Type_1&lt;/TD&gt;&lt;TD&gt;F_Type_1_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 21:28:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;F_Type_2&lt;/TD&gt;&lt;TD&gt;F_Type_2_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 21:28:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;F_Type_3&lt;/TD&gt;&lt;TD&gt;F_Type_3_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 21:28:25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 21:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677610#M231697</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-02-14T21:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with unique rows base upon unique fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677619#M231698</link>
      <description>&lt;P&gt;The emulation works wonderfully when doing it my test environment, however when doing the emulation in the search head, the "INTERESTING FIELDS" field names and their values are overriding the extracted values:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;host&lt;/TD&gt;&lt;TD&gt;Component&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;F_Type_1&lt;/TD&gt;&lt;TD&gt;F_Type_1_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 21:28:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;F_Type_1&lt;/TD&gt;&lt;TD&gt;F_Type_1_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 21:28:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;F_Type_1&lt;/TD&gt;&lt;TD&gt;F_Type_1_Section_5_Value&lt;/TD&gt;&lt;TD&gt;2024-02-14 21:28:25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I had to remove the auto-extracted field at the beginning&lt;BR /&gt;&lt;BR /&gt;Here is the final emulation in live data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields - Section_5
| dedup host
| eval data = split(_raw, "
")
| eval data = mvfilter(match(data, "^Component="))
| mvexpand data
| rename data AS _raw
| extract pairdelim=",", kvdelim="="
| rename Section_5 AS Value
| table host Component Value _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 00:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-with-unique-rows-base-upon-unique-fields/m-p/677619#M231698</guid>
      <dc:creator>Ho_Wai_Yung</dc:creator>
      <dc:date>2024-02-15T00:32:47Z</dc:date>
    </item>
  </channel>
</rss>

