<?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: How can I extract these fields to have a table output with the field value (AAAAA) rather than name=&amp;quot;AAAAA&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354387#M104904</link>
    <description>&lt;P&gt;To quickly fix this, so you can render your table correctly try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;|rex field=name "name=(?&amp;lt;newname&amp;gt;.*)"|rex field=first_name "first_name=(?&amp;lt;newfirst_name&amp;gt;.*)"|table _time newname newfirst_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However as @richgalloway points out - you should probably fix this in props.conf&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2017 22:09:13 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2017-12-20T22:09:13Z</dc:date>
    <item>
      <title>How can I extract these fields to have a table output with the field value (AAAAA) rather than name="AAAAA"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354383#M104900</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have  _raw data like this:&lt;BR /&gt;
time , name="AAAAAA",first_name="BBBBB"&lt;/P&gt;

&lt;P&gt;When I look with table I saw this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                name                    first_name
12/20/2017    name="AAAAA"   first_name="BBBBB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I have the output result in showing the fields this way instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                name                    first_name
12/20/2017    "AAAAA"                 "BBBBB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you for your help &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354383#M104900</guid>
      <dc:creator>isabellechristo</dc:creator>
      <dc:date>2020-09-29T17:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract these fields to have a table output with the field value (AAAAA) rather than name="AAAAA"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354384#M104901</link>
      <description>&lt;P&gt;It's probably something simple like adding &lt;CODE&gt;kv_mode = auto&lt;/CODE&gt; to your props.conf file.  We could help more if you would share the props.conf settings for that sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 21:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354384#M104901</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-12-20T21:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract these fields to have a table output with the field value (AAAAA) rather than name="AAAAA"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354385#M104902</link>
      <description>&lt;P&gt;Standalone example using rex and overwriting existing field values&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval name = "name=\"AAAA\"" 
| eval first_name = "first_name=\"BBBB\"" 
| rex field=name "name=(?&amp;lt;name&amp;gt;.*)" 
| rex field=first_name "first_name=(?&amp;lt;first_name&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Standalone example showing further field extractions with rex (in case you wanted to remove the quotes)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval name = "name=\"AAAA\"" 
| eval first_name = "first_name=\"BBBB\"" 
| rex field=name "name=(?&amp;lt;name2&amp;gt;.*)" 
| rex field=name "name=\"(?&amp;lt;name3&amp;gt;.*)\"" 
| rex field=first_name "first_name=(?&amp;lt;first_name2&amp;gt;.*)" 
| rex field=first_name "first_name=\"(?&amp;lt;first_name3&amp;gt;.*)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Dec 2017 22:03:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354385#M104902</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2017-12-20T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract these fields to have a table output with the field value (AAAAA) rather than name="AAAAA"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354386#M104903</link>
      <description>&lt;P&gt;If you use it only once you can try it with this command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "name=\"(?&amp;lt;name&amp;gt;[^\"].+)\",first_name=\"(?&amp;lt;first_name&amp;gt;[^\"].+)\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are using it more then one. Try to extract new fields with the field extractor.  There you can also use the regex from above.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 22:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354386#M104903</guid>
      <dc:creator>lukas_loder</dc:creator>
      <dc:date>2017-12-20T22:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract these fields to have a table output with the field value (AAAAA) rather than name="AAAAA"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354387#M104904</link>
      <description>&lt;P&gt;To quickly fix this, so you can render your table correctly try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;|rex field=name "name=(?&amp;lt;newname&amp;gt;.*)"|rex field=first_name "first_name=(?&amp;lt;newfirst_name&amp;gt;.*)"|table _time newname newfirst_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However as @richgalloway points out - you should probably fix this in props.conf&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 22:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-these-fields-to-have-a-table-output-with-the/m-p/354387#M104904</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-20T22:09:13Z</dc:date>
    </item>
  </channel>
</rss>

