<?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: Select One of Two Event Fields in Stats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604991#M210407</link>
    <description>&lt;P&gt;Yes, it is. That worked perfectly. Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 18:05:13 GMT</pubDate>
    <dc:creator>user33</dc:creator>
    <dc:date>2022-07-08T18:05:13Z</dc:date>
    <item>
      <title>How to select one of two event fields in stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604981#M210404</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two event fields with the same name "timestamp". I just want to display (in stats) the "timestamp" field from the "ResponseReceive" logEventType. Not the one from logType "SystemLog". Currently is displays both.&amp;nbsp; Is there a way to do this? Any assistance is appreciated. Thank you!!&lt;/P&gt;
&lt;PRE&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;BR /&gt;| fields timestamp, apiName, apiVersion, ceoCompanyId, entityId, sessionId, transactionDetailsResponse.transactionDetailsList.totalCount, transactionDetailsResponse.transactionDetailsList.transactionDetails{}.acctNumber, transactionDetailsResponse.transactionDetailsList.transactionDetails{}.Amount, transactionDetailsResponse.transactionDetailsList.transactionDetails{}.tranDateTime, transactionDetailsResponse.transactionDetailsList.transactionDetails{}.totalTranCount&lt;BR /&gt;| rename transactionDetailsResponse.transactionDetailsList.totalCount AS "TransactionCount", transactionDetailsResponse.transactionDetailsList.transactionDetails{}.acctNumber AS "AcctNum", transactionDetailsResponse.transactionDetailsList.transactionDetails{}.Amount AS "Amount", transactionDetailsResponse.transactionDetailsList.transactionDetails{}.tranDateTime AS "TranDateTime", transactionDetailsResponse.transactionDetailsList.transactionDetails{}.totalTranCount AS "TotalTranCount"&lt;BR /&gt;| stats&lt;BR /&gt;values(timestamp) AS timestamp,&lt;BR /&gt;values(TranDateTime) AS TranDateTime,&lt;BR /&gt;values(apiName) AS apiName,&lt;BR /&gt;values(apiVersion) AS apiVersion,&lt;BR /&gt;values(ceoCompanyId) AS ceoCompanyId,&lt;BR /&gt;values(entityId) AS entityId,&lt;BR /&gt;values(TotalTranCount) AS TotalTranCount,&lt;BR /&gt;values(AcctNum) AS AcctNum,&lt;BR /&gt;by sessionId,&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="user33_0-1657300216455.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20466iB55862FEE50DCA2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="user33_0-1657300216455.png" alt="user33_0-1657300216455.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="user33_1-1657300249200.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20467i23BB1F4D0B20B161/image-size/medium?v=v2&amp;amp;px=400" role="button" title="user33_1-1657300249200.png" alt="user33_1-1657300249200.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 20:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604981#M210404</guid>
      <dc:creator>user33</dc:creator>
      <dc:date>2022-07-08T20:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select One of Two Event Fields in Stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604982#M210405</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247156"&gt;@user33&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Will the "&lt;SPAN&gt;ResponseReceive" always be received after the "SystemLog", I mean, will the timestamp of the ResponseReceive always be latest than the SystemLog timestamp?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If yes, you could use the &lt;STRONG&gt;"latest"&lt;/STRONG&gt; command from &lt;STRONG&gt;stats.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(timestamp) AS timestamp by sessionId&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 17:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604982#M210405</guid>
      <dc:creator>danielcj</dc:creator>
      <dc:date>2022-07-08T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select One of Two Event Fields in Stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604991#M210407</link>
      <description>&lt;P&gt;Yes, it is. That worked perfectly. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 18:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-select-one-of-two-event-fields-in-stats/m-p/604991#M210407</guid>
      <dc:creator>user33</dc:creator>
      <dc:date>2022-07-08T18:05:13Z</dc:date>
    </item>
  </channel>
</rss>

