<?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: search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search/m-p/531456#M150113</link>
    <description>&lt;P&gt;If the events are unique per id, then you can use stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"your current search" |stats latest(api_name) as api_name,..,latest(fieldname) as fieldname by Id&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 01 Dec 2020 07:51:16 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2020-12-01T07:51:16Z</dc:date>
    <item>
      <title>search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search/m-p/531447#M150111</link>
      <description>&lt;P&gt;Hi, I have 2 different events. these 2 events can be identified by "Id".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to display it in table in the below format, wherein the records should be in a single row&lt;/P&gt;&lt;P&gt;api_name,Id,OpName,Response,Current,System_Service_Response&lt;/P&gt;&lt;P&gt;event 1&lt;BR /&gt;api_name=apple||Id=12345||OpName=Update||Response_Code=200||Response_Status=COMPLETED||Response=[{"number":"99999","status":"Welcome back"}]||&lt;/P&gt;&lt;P&gt;event 2&lt;/P&gt;&lt;P&gt;api_name=apple||Id=12345||System_Name=Oracle||Service_Name=Oracle||Operation_Name=test||System_Status_Code=200||System_Service_Status=COMPLETED||System_Service_Response={"number":"99999","status":"Welcome back"}||Current=99999&lt;BR /&gt;&lt;BR /&gt;My search query displays 2 rows, is it possible to group the events and display in 1 row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search/m-p/531447#M150111</guid>
      <dc:creator>ashukp</dc:creator>
      <dc:date>2020-12-01T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search/m-p/531456#M150113</link>
      <description>&lt;P&gt;If the events are unique per id, then you can use stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"your current search" |stats latest(api_name) as api_name,..,latest(fieldname) as fieldname by Id&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search/m-p/531456#M150113</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-12-01T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search/m-p/531462#M150115</link>
      <description>&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;System_Service_Response=&lt;/SPAN&gt;Request&lt;/SPAN&gt; &lt;SPAN class="t"&gt;method&lt;/SPAN&gt;&lt;SPAN&gt; 'POST&lt;/SPAN&gt;&lt;SPAN&gt;' &lt;/SPAN&gt;&lt;SPAN class="t"&gt;not&lt;/SPAN&gt; &lt;SPAN class="t"&gt;supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;its just printing Request and not the whole string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Also, how can i separate out the below string in 2 different fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;Response=[{"number":"99999","status":"Welcome back"}]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;i.e. number and status.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 08:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search/m-p/531462#M150115</guid>
      <dc:creator>ashukp</dc:creator>
      <dc:date>2020-12-01T08:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search/m-p/531463#M150116</link>
      <description>&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;System_Service_Response=&lt;/SPAN&gt;Request&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;method&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;'POST&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;not&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;its just printing Request and not the whole string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Also, how can i separate out the below string in 2 different fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;Response=[{"number":"99999","status":"Welcome back"}]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;i.e. number and status.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 08:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search/m-p/531463#M150116</guid>
      <dc:creator>ashukp</dc:creator>
      <dc:date>2020-12-01T08:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search/m-p/531625#M150149</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=Response "\[\{\"number\":\"(?&amp;lt;Number&amp;gt;\d+)\",\"status\":\"(?&amp;lt;Status&amp;gt;.+)\"\}"&lt;/LI-CODE&gt;&lt;P&gt;For the &lt;SPAN class="t"&gt;&lt;SPAN&gt;System_Service_Response&lt;/SPAN&gt;&lt;/SPAN&gt;, you either need to fix it at the source by quote around the string to consider it as single string or extract using rex in the search&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 04:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search/m-p/531625#M150149</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-12-02T04:00:08Z</dc:date>
    </item>
  </channel>
</rss>

