<?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: Extract field from table data which present on _raw in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525202#M148178</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=_internal | head 1 | fields _raw | eval _raw="Name       ID         Age
Harry        AAA     23
Will           BBB       27
Brian        CCC      30"
| rename COMMENT as "these are your log sample. from here, the logic"
| rex mode=sed "s/[ ]+/,/g"
| multikv
| rename COMMENT as "as you like | table Name,ID,Age"&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 17 Oct 2020 21:56:48 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-10-17T21:56:48Z</dc:date>
    <item>
      <title>Extract field from table data which present on _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525193#M148173</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have below table type data in _raw and i want to extract fields.&lt;/P&gt;&lt;P&gt;Example _raw as below&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Age&lt;/P&gt;&lt;P&gt;Harry&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AAA&amp;nbsp; &amp;nbsp; &amp;nbsp;23&lt;/P&gt;&lt;P&gt;Will&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BBB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;27&lt;/P&gt;&lt;P&gt;Brian&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CCC&amp;nbsp; &amp;nbsp; &amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expectation is&amp;nbsp; like below. I want 3 fields (as no.of columns) and it should list like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i do (...|table Name,ID,Age) it should show like below&lt;/P&gt;&lt;P&gt;Name ID Age&lt;/P&gt;&lt;P&gt;Harry AAA 23&lt;/P&gt;&lt;P&gt;Will BBB 27&lt;/P&gt;&lt;P&gt;Brian CCC 30&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 19:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525193#M148173</guid>
      <dc:creator>sathim471</dc:creator>
      <dc:date>2020-10-17T19:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field from table data which present on _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525199#M148176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227750"&gt;@sathim471&lt;/a&gt;&amp;nbsp;.. these logs are already ingested or not yet? if they are ingested already, what is your current search query? the fields may be already extracted..&amp;nbsp;&lt;/P&gt;&lt;P&gt;if so, ..lets say, for example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=main source=testSource | table Name ID Age&lt;BR /&gt;&lt;BR /&gt;if fields are not extracted, then, you have to use "rex" (regular expressions)command to extract them. provide us some sample events, so that we can help you with rex query.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 21:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525199#M148176</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-10-17T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field from table data which present on _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525202#M148178</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_internal | head 1 | fields _raw | eval _raw="Name       ID         Age
Harry        AAA     23
Will           BBB       27
Brian        CCC      30"
| rename COMMENT as "these are your log sample. from here, the logic"
| rex mode=sed "s/[ ]+/,/g"
| multikv
| rename COMMENT as "as you like | table Name,ID,Age"&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 17 Oct 2020 21:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-from-table-data-which-present-on-raw/m-p/525202#M148178</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-10-17T21:56:48Z</dc:date>
    </item>
  </channel>
</rss>

