<?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 to remove comms and parenthesis in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647245#M224026</link>
    <description>&lt;P&gt;The key to extract rigidly formatted data is to not use regex and not think about symbols. &amp;nbsp;All you need is &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Extract" target="_blank" rel="noopener"&gt;extract&lt;/A&gt; aka kv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| kv pairdelim="," kvdelim=":"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You should get&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Elapsed&lt;/TD&gt;&lt;TD&gt;PortforlioSymbol&lt;/TD&gt;&lt;TD&gt;Records&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0500421&lt;/TD&gt;&lt;TD&gt;2MB5&lt;/TD&gt;&lt;TD&gt;317&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0505221&lt;/TD&gt;&lt;TD&gt;2MB6&lt;/TD&gt;&lt;TD&gt;330&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0508121&lt;/TD&gt;&lt;TD&gt;2MB7&lt;/TD&gt;&lt;TD&gt;417&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 04:30:27 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-06-16T04:30:27Z</dc:date>
    <item>
      <title>How to remove comms and parenthesis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647076#M223968</link>
      <description>&lt;P&gt;&lt;SPAN&gt;index="myIndex" app_name="myappName"&amp;nbsp; My.Message = "*failed to retrieve&amp;nbsp;the workOrder*"&lt;BR /&gt;| rex "Order (?&amp;lt;Order&amp;gt;[^\s]+)"&lt;BR /&gt;| stats count BY Order&lt;BR /&gt;| addcoltotals count&lt;BR /&gt;| rename Order AS "Order#", count AS "# of times failed"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;on the Events tab, My.Message returns&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order 1AB5 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;BR /&gt;Order 1MB1 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;BR /&gt;Order 2MB5 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order 2MB6 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order 1MB1 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order 1MB7 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order 1MB9 failed to retrieve&amp;nbsp;the workOrder. Error DataBase mapping incorrect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On the Statics Tab I see the below values&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Order#&lt;BR /&gt;(1AB5,&lt;BR /&gt;(1MB1,&lt;BR /&gt;(2MB6,&lt;BR /&gt;1MB7&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1MB9 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How to remove&amp;nbsp;( and ,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 18:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647076#M223968</guid>
      <dc:creator>Sureshp191</dc:creator>
      <dc:date>2023-06-15T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647078#M223969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257729"&gt;@Sureshp191&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on the what you presented that could not happen.&amp;nbsp; Can you maybe provide a screen shot of the search and results in the Splunk UI.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 03:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647078#M223969</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-06-15T03:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647081#M223971</link>
      <description>&lt;P&gt;Sorry posted a wrong splunk query, here is the correct one&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="myIndex" appname="myapp" msg.result.message =&lt;/SPAN&gt;&lt;SPAN&gt;"*PortfolioSymbol:*"&lt;/SPAN&gt;&lt;BR /&gt;| rex "&lt;SPAN&gt;PortfolioSymbol&lt;/SPAN&gt;: (?&amp;lt;&lt;SPAN&gt;PortfolioSymbol&lt;/SPAN&gt;&amp;gt;[^\"]*) Records: (?&amp;lt;Records&amp;gt;[^\"]*) Elapsed: (?&amp;lt;Elapsed&amp;gt;[^\"]*)"&lt;BR /&gt;| stats count BY &lt;SPAN&gt;PortfolioSymbol, Records, Elapsed&lt;/SPAN&gt;&lt;BR /&gt;| addcoltotals count&lt;BR /&gt;| rename count AS "Refresh Counts"&lt;BR /&gt;When I run the above query, I get the below results:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;InsertIntoDatabase Ended, PortfolioSymbol: 2MB5, Records: 317, Elapsed: 0.0500421&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;InsertIntoDatabase Ended, PortfolioSymbol: 2MB6, Records: 330, Elapsed: 0.0505221&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;InsertIntoDatabase Ended, PortfolioSymbol: 2MB7, Records: 417, Elapsed: 0.0508121&lt;BR /&gt;&lt;BR /&gt;Below is the Statics tab output:&lt;BR /&gt;PortfolioSymbol&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Records&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;Elapsed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2MB5,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;317,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0500421&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2MB6,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;330,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0505221&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;2MB7,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;417,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0508121 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How to remove the comms, Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 04:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647081#M223971</guid>
      <dc:creator>Sureshp191</dc:creator>
      <dc:date>2023-06-15T04:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647083#M223972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257729"&gt;@Sureshp191&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how that regex could work as there is no double quote for the exclusion group to match against.&lt;BR /&gt;&lt;BR /&gt;This is the regex you need to not put the , in the field value...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| rex "PortfolioSymbol: (?&amp;lt;PortfolioSymbol&amp;gt;[^,]+) Records: (?&amp;lt;Records&amp;gt;[^,]+) Elapsed: (?&amp;lt;Elapsed&amp;gt;[^\s]+)"
...&lt;/LI-CODE&gt;&lt;P&gt;The regex [^,]+ syntax means match anything that is not a comma.&amp;nbsp; Once it matches a comma the capture group match stops and moves to the next match, etc.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 04:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647083#M223972</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-06-15T04:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647085#M223973</link>
      <description>&lt;P&gt;Also, please use the Insert/Edit code sample button when adding event or SPL code content as it helps make the question clearer and prevents the web browser view doing any strange formatting to the example data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yeahnah_0-1686805014989.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25849i1D3EF3DBF9B998A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yeahnah_0-1686805014989.png" alt="yeahnah_0-1686805014989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 04:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647085#M223973</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-06-15T04:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647245#M224026</link>
      <description>&lt;P&gt;The key to extract rigidly formatted data is to not use regex and not think about symbols. &amp;nbsp;All you need is &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Extract" target="_blank" rel="noopener"&gt;extract&lt;/A&gt; aka kv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| kv pairdelim="," kvdelim=":"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You should get&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Elapsed&lt;/TD&gt;&lt;TD&gt;PortforlioSymbol&lt;/TD&gt;&lt;TD&gt;Records&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0500421&lt;/TD&gt;&lt;TD&gt;2MB5&lt;/TD&gt;&lt;TD&gt;317&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0505221&lt;/TD&gt;&lt;TD&gt;2MB6&lt;/TD&gt;&lt;TD&gt;330&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0508121&lt;/TD&gt;&lt;TD&gt;2MB7&lt;/TD&gt;&lt;TD&gt;417&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 04:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647245#M224026</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-06-16T04:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647303#M224040</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, as per your suggestion I replaced rex with kv, even though I got 250 plus events but zero statics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="myIndex" appname="myapp" msg.result.message ="*PortfolioSymbol:*"
| kv pairdelim="," kvdelim=":"
| stats values(Elapsed) AS Elapsed BY _time PortfolioSymbol, Records
| addcoltotals count
| rename count AS "Refresh Counts"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647303#M224040</guid>
      <dc:creator>Sureshp191</dc:creator>
      <dc:date>2023-06-16T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647307#M224041</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158935"&gt;@yeahnah&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution, even though I see 290 plus events but zero statics.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_1302f50a.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25887iADB7EE1F0C90BBB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_1302f50a.png" alt="Snag_1302f50a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Only when I give as below, I get 250 plus statics but with comma&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "PortfolioSymbol: (?&amp;lt;PortfolioSymbol&amp;gt;[^\"]*) Records: (?&amp;lt;Records&amp;gt;[^\"]*) Elapsed: (?&amp;lt;Elapsed&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647307#M224041</guid>
      <dc:creator>Sureshp191</dc:creator>
      <dc:date>2023-06-16T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647340#M224051</link>
      <description>&lt;P&gt;Could you share some raw events that comes back from your search (without stats)? &amp;nbsp;That is the key to solving a data problem, regex or not.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647340#M224051</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-06-16T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647350#M224056</link>
      <description>&lt;P&gt;This is partial from raw&amp;nbsp;&lt;BR /&gt;"Results":{"Message":"InsertIntoDatabase Ended, PortfolioSymbol: 2MB5, Records: 455, Elapsed: 0.0869895","Elapsed":0,"TraceLevel":"Information"},&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 17:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647350#M224056</guid>
      <dc:creator>Sureshp191</dc:creator>
      <dc:date>2023-06-16T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove comms and parenthesis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647382#M224062</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257729"&gt;@Sureshp191&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This is partial from raw&amp;nbsp;&lt;BR /&gt;"Results":{"Message":"InsertIntoDatabase Ended, PortfolioSymbol: 2MB5, Records: 455, Elapsed: 0.0869895","Elapsed":0,"TraceLevel":"Information"},&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is clearly part of a JSON object. &amp;nbsp;If&amp;nbsp;&lt;SPAN&gt;the part "Result" is a first-level key, Splunk would have given you fields like Results.Message (which contains the information you are trying to parse), Results.Elapsed, Results.TraceLevel. &amp;nbsp;Is this correct? &amp;nbsp;If you indicated that the string you wanted to parse is in a named field such as Results.Message, the solution would be obvious:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename _raw as temp; Results.Message as _raw
| kv pairdelim="," kvdelim=":"
| rename _raw as Results.Messages, rename temp as _raw ``` just in case you still want _raw ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The snippet would give you something like&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Elapsed&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;PortfolioSymbol&lt;/TD&gt;&lt;TD&gt;Records&lt;/TD&gt;&lt;TD&gt;Results.Elapsed&lt;/TD&gt;&lt;TD&gt;Results.Message&lt;/TD&gt;&lt;TD&gt;Results.TraceLevel&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.0869895&lt;/TD&gt;&lt;TD&gt;2MB5&lt;/TD&gt;&lt;TD&gt;455&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;InsertIntoDatabase Ended, PortfolioSymbol: 2MB5, Records: 455, Elapsed: 0.0869895&lt;/TD&gt;&lt;TD&gt;Information&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Here is an emulation of your snippet that 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 = "{\"Results\":{\"Message\":\"InsertIntoDatabase Ended, PortfolioSymbol: 2MB5, Records: 455, Elapsed: 0.0869895\",\"Elapsed\":0,\"TraceLevel\":\"Information\"}}"
| spath
``` data emulation above ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 05:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-comms-and-parenthesis/m-p/647382#M224062</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-06-17T05:33:11Z</dc:date>
    </item>
  </channel>
</rss>

