<?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: Need help to with query to create a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538403#M152199</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=main host IN(abc,xyz) 
| rex field=_raw "(?ms)Label\s+Name\s:\s(?&amp;lt;App_Name&amp;gt;\w+\S+)" 
| rex field=_raw "(?ms)APP_NAME=\"(?P&amp;lt;App_Name&amp;gt;[^\"]+)"
| rex field=_raw "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState" 
| rex field=_raw "(?ms)LASTDEPLOYED=\"(?P&amp;lt;Last_Deployed&amp;gt;[^\"]+)" 
| rex field=_raw "(?ms)APP_TEMP_VER=\"(?P&amp;lt;Temp_Version&amp;gt;[^\"]+)" 
| stats values(Sync_State) as Sync_State latest(Last_Deployed) as Last_Deployed  latest(Temp_Version) as Temp_Version by App_Name 
| mvexpand Sync_State 
| table App_Name,Sync_State,Last_Deployed,Temp_Version&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 03 Feb 2021 10:29:38 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-02-03T10:29:38Z</dc:date>
    <item>
      <title>Need help to with query to create a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538385#M152191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the below types of logs in in two different hosts in my index:&lt;/P&gt;&lt;P&gt;HOST= abc&lt;/P&gt;&lt;P&gt;log1:&amp;nbsp;&lt;SPAN class="t"&gt;Tue&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Feb&lt;/SPAN&gt; &lt;SPAN class="t"&gt;2&lt;/SPAN&gt; &lt;SPAN class="t"&gt;19:07:26&lt;/SPAN&gt; &lt;SPAN class="t"&gt;EST&lt;/SPAN&gt; &lt;SPAN class="t"&gt;2021&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Host&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Id&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:19804&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Host&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&amp;nbsp;abcd&amp;nbsp;&lt;SPAN class="t"&gt;Host&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Status&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Running&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="t"&gt;App&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Id&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:3403927&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Label&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Name&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abc.mx.xyz&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="t"&gt;Synchronization&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;In&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Sync&lt;/SPAN&gt; &lt;SPAN class="t"&gt;State&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Running&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Number&lt;/SPAN&gt; &lt;SPAN class="t"&gt;of&lt;/SPAN&gt; &lt;SPAN class="t"&gt;template&lt;/SPAN&gt; &lt;SPAN class="t"&gt;version&lt;/SPAN&gt; &lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;48&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;log2:&amp;nbsp;&lt;SPAN class="t h"&gt;Tue&lt;/SPAN&gt; Feb 2 19:07:26 EST 2021 Host Id :19804 Host Name :&amp;nbsp;wxyz&amp;nbsp;Host Status : Running App Id :27736 Label Name : &lt;SPAN&gt;com.abcde.abcdefgh&lt;/SPAN&gt; Synchronization : Out of Sync State : Running Number of template version :&lt;SPAN&gt; 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;HOST= xyz&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;log1:&amp;nbsp;2021-02-03 02:12:49.896, APP_NAME="com.abc.mx.xyz", APP_TEMP_NAME="com.abc.mx.xyz-1", APP_TEMP_VER="1.1.5", LASTDEPLOYED="2019-09-24 13:38:05.047", ENV_NAME="ABCEnvironment_MY"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;log2:&amp;nbsp;&lt;SPAN class="t h"&gt;2021&lt;/SPAN&gt;-02-03 02:12:49.896, APP_NAME="com.abcde.abcdefgh", APP_TEMP_NAME="com.abcde.abcdefgh", APP_TEMP_VER="3.1.0.20201126030342320", LASTDEPLOYED="2020-11-27 13:01:49.959", ENV_NAME="ABCEnvironment_AU"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;Here want to create a table as below with fields from both the hosts:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="t"&gt;App_Name&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; Sync_State&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_Deployed&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;Temp_Version&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abc.mx.xyz&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In Sync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2019-09-24 13:38:05.047&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;1.1.5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abcde.abcdefgh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Out of Sync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2020-11-27 13:01:49.959&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.1.0.20201126030342320&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;I created this query to create the table:&lt;/P&gt;&lt;P&gt;index=main host IN(abc,xyz) |&amp;nbsp;rex field=_raw "(?ms)Label\s+Name\s:\s(?&amp;lt;App_Name&amp;gt;\w+\S+)" | rex field=_raw "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState"&amp;nbsp;| rex field=_raw "(?ms)LASTDEPLOYED=\"(?P&amp;lt;Last_Deployed&amp;gt;[^\"]+)"&amp;nbsp;| rex field=_raw "(?ms)APP_TEMP_VER=\"(?P&amp;lt;Temp_Version&amp;gt;[^\"]+)" | stats values(Sync_State) as Sync_State by App_Name | mvexpand Sync_State | table App_Name,Sync_State,Last_Deployed,Temp_Version&lt;/P&gt;&lt;P&gt;But I am failing to get the desired output as with this query the "Last_Deployed" and "Temp_Version" fields come empty.&lt;/P&gt;&lt;P&gt;Can someone please help me in creating the right query to create the table in desired manner..&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 07:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538385#M152191</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-02-03T07:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to with query to create a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538388#M152192</link>
      <description>&lt;P&gt;You need to include an extraction of APP_NAME into App_Name from the second of events (host xyz) and you need to include Last_Deployed and Temp_Version in the stats command (otherwise, it gets removed from the pipeline)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main host IN(abc,xyz) 
| rex field=_raw "(?ms)Label\s+Name\s:\s(?&amp;lt;App_Name&amp;gt;\w+\S+)" 
| rex field=_raw "(?ms)APP_NAME=\"(?P&amp;lt;App_Name&amp;gt;[^\"]+)"
| rex field=_raw "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState" 
| rex field=_raw "(?ms)LASTDEPLOYED=\"(?P&amp;lt;Last_Deployed&amp;gt;[^\"]+)" 
| rex field=_raw "(?ms)APP_TEMP_VER=\"(?P&amp;lt;Temp_Version&amp;gt;[^\"]+)" 
| stats values(Sync_State) as Sync_State values(Last_Deployed) as Last_Deployed  values(Temp_Version) as Temp_Version by App_Name 
| mvexpand Sync_State 
| table App_Name,Sync_State,Last_Deployed,Temp_Version&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Feb 2021 08:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538388#M152192</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-03T08:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to with query to create a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538396#M152194</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;Thank you for your prompt response.&lt;/P&gt;&lt;P&gt;The query seems to be fine however it is not coming out in the table as expected. The table that forms out of the query is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="t"&gt;App_Name&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; Sync_State&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_Deployed&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;Temp_Version&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abc.mx.xyz&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In Sync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2018-08-21 07:59:59.653&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0.10.20190510004347647&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;&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; &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; &amp;nbsp; &amp;nbsp;2019-02-06 12:49:23.062&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0.11.20210120114351539 &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&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; &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; &amp;nbsp; &amp;nbsp;2021-01-27 12:25:34.845&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0.7.20180816080749984&lt;BR /&gt;&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; &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; &amp;nbsp; &amp;nbsp;2021-01-27 13:17:30.922&lt;BR /&gt;&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; &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; &amp;nbsp; &amp;nbsp;2021-01-27 13:41:12.389&lt;BR /&gt;&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; &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; &amp;nbsp; &amp;nbsp;2021-01-27 14:09:38.631&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abcde.abcdefgh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Out of Sync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2018-08-21 07:06:54.036&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.1.0.20180730083057277&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;&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; &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; &amp;nbsp; 2018-11-18 05:53:26.057&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.1.0.20181025094824195&lt;BR /&gt;&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; &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; &amp;nbsp; 2020-11-27 12:25:29.846&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.1.0.20201126030342320&lt;BR /&gt;&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; &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; &amp;nbsp; 2020-11-27 12:46:02.675&lt;BR /&gt;&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; &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; &amp;nbsp; 2020-11-27 12:53:16.905&lt;BR /&gt;&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; &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; &amp;nbsp; 2020-11-27 13:01:49.959&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;and so on..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While my expectation is to create the table with the latest "Last_Deployed" and latest "Temp_Version" as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="t"&gt;App_Name&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; Sync_State&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_Deployed&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;Temp_Version&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abc.mx.xyz&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In Sync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2021-01-27 14:09:38.631&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0.11.20210120114351539&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;com.abcde.abcdefgh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Out of Sync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2020-11-27 13:01:49.959&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.1.0.20201126030342320&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;Can you please help me to get the table in the desired way..&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 09:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538396#M152194</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-02-03T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to with query to create a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538403#M152199</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=main host IN(abc,xyz) 
| rex field=_raw "(?ms)Label\s+Name\s:\s(?&amp;lt;App_Name&amp;gt;\w+\S+)" 
| rex field=_raw "(?ms)APP_NAME=\"(?P&amp;lt;App_Name&amp;gt;[^\"]+)"
| rex field=_raw "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState" 
| rex field=_raw "(?ms)LASTDEPLOYED=\"(?P&amp;lt;Last_Deployed&amp;gt;[^\"]+)" 
| rex field=_raw "(?ms)APP_TEMP_VER=\"(?P&amp;lt;Temp_Version&amp;gt;[^\"]+)" 
| stats values(Sync_State) as Sync_State latest(Last_Deployed) as Last_Deployed  latest(Temp_Version) as Temp_Version by App_Name 
| mvexpand Sync_State 
| table App_Name,Sync_State,Last_Deployed,Temp_Version&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Feb 2021 10:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538403#M152199</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-03T10:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to with query to create a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538418#M152205</link>
      <description>&lt;P&gt;Thank you ITWhisperer...!!&lt;/P&gt;&lt;P&gt;The query has worked. But I am seeing that if I want to minimize the search to a particular environment then I am not getting the Sync_State in the table.&lt;/P&gt;&lt;P&gt;I have used the below query:&lt;/P&gt;&lt;P&gt;index=int_gcg_apac_solace_166076 host IN(mwgtc-dbcld23u-scan,mwgtc-tiblc36u.nam.nsroot.net)&lt;BR /&gt;| rex field=_raw "(?ms)Host\s+Name\s:\s(?&amp;lt;Host_Name&amp;gt;\w+)"&lt;BR /&gt;| rex field=_raw "(?ms)Label\s+Name\s:\s(?&amp;lt;App_Name&amp;gt;\w+\S+)"&lt;BR /&gt;| rex field=_raw "(?ms)APP_NAME=\"(?P&amp;lt;App_Name&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=_raw "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState"&lt;BR /&gt;| rex field=_raw "(?ms)LASTDEPLOYED=\"(?P&amp;lt;Last_Deployed&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=_raw "(?ms)APP_TEMP_VER=\"(?P&amp;lt;Temp_Version&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=_raw "(?ms)ENV_NAME=\"(?P&amp;lt;ENV_NAME&amp;gt;[^\"]+)"&lt;BR /&gt;| search ENV_NAME=BPMEnvironment_MY&lt;BR /&gt;| stats values(Sync_State) as Sync_State latest(Last_Deployed) as Last_Deployed latest(Temp_Version) as Temp_Version by App_Name&lt;BR /&gt;| mvexpand Sync_State&lt;BR /&gt;| table App_Name,Sync_State,Last_Deployed,Temp_Version&lt;/P&gt;&lt;P&gt;Can you please help me edit the query to fulfill my expectation..&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-with-query-to-create-a-table/m-p/538418#M152205</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-02-03T11:06:12Z</dc:date>
    </item>
  </channel>
</rss>

