<?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 table with fields and count related by another field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653212#M225747</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the following case,&lt;/P&gt;&lt;P&gt;An operation has multiple events and every event of an operation is related by field PushId.&lt;/P&gt;&lt;P&gt;Below the events of one operation (underlined necessary fields)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;13:14:03,838;04-08-2023 13:14:03.838;;SMS;33786543;iOS;001452c7-9f80-4215-87b5-a20b00e3c4fd;;;0;OK

13:09:31,150;04-08-2023 13:09:31.133;;SEND_PUSH_APNS;33786543;ios;001452c7-9f80-4215-87b5-a20b00e3c4fd;This is a Title;This is the Body.;17;OK;null

13:09:31,131;04-08-2023 13:09:31.102;;NON_SILENT_PUSH;33786543;;001452c7-9f80-4215-87b5-a20b00e3c4fd;This is a Title;This is the Body..;29;OK;null

01:23:52,652;04-08-2023 01:23:52.519;10.129.150.86;SEND_PUSH_REQUEST;33786543;ios;001452c7-9f80-4215-87b5-a20b00e3c4fd;This is a Title;This is the Body.;133;OK;29a6c9e8-d731-47b4-81b9-6748596c4138&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;I want to count by every PushID (001452c7-9f80-4215-87b5-a20b00e3c4fd in this case) the Number of requests equal to&amp;nbsp;SEND_PUSH_REQUEST, ACK and SMS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;With this counts do a table including Title and Body,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;For this particular case, should look like,&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Title | Body | Requests (SEND_PUSH_REQUEST) | ACK | SMS&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is a Title | This is the Body | 1 | 0 | 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;for counts i'm ok with below queries&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=vfpt_idx_gssm_mbe PushId=001452c7-9f80-4215-87b5-a20b00e3c4fd
| stats count(eval(Request="SEND_PUSH_REQUEST")) as request
, dc(eval(Request="ACK")) as ack
, count(eval(Request="SMS")) as sms by PushId, Title, Body
| table Title Body request ack sms&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;the problem is isn't show the correct count for SMS because is Title and Body is not on all events&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=vfpt_idx_gssm_mbe PushId=001452c7-9f80-4215-87b5-a20b00e3c4fd
| stats count(eval(Request="SEND_PUSH_REQUEST")) as request
, dc(eval(Request="ACK")) as ack
, count(eval(Request="SMS")) as sms by PushId
| table Title Body request ack sms&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;With this query, counts are ok but table is not showing Title and Body.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm stuck here and i don't know how to relate the counts with fields Title and Body on a table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 17:28:59 GMT</pubDate>
    <dc:creator>lemospt</dc:creator>
    <dc:date>2023-08-04T17:28:59Z</dc:date>
    <item>
      <title>table with fields and count related by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653212#M225747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the following case,&lt;/P&gt;&lt;P&gt;An operation has multiple events and every event of an operation is related by field PushId.&lt;/P&gt;&lt;P&gt;Below the events of one operation (underlined necessary fields)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;13:14:03,838;04-08-2023 13:14:03.838;;SMS;33786543;iOS;001452c7-9f80-4215-87b5-a20b00e3c4fd;;;0;OK

13:09:31,150;04-08-2023 13:09:31.133;;SEND_PUSH_APNS;33786543;ios;001452c7-9f80-4215-87b5-a20b00e3c4fd;This is a Title;This is the Body.;17;OK;null

13:09:31,131;04-08-2023 13:09:31.102;;NON_SILENT_PUSH;33786543;;001452c7-9f80-4215-87b5-a20b00e3c4fd;This is a Title;This is the Body..;29;OK;null

01:23:52,652;04-08-2023 01:23:52.519;10.129.150.86;SEND_PUSH_REQUEST;33786543;ios;001452c7-9f80-4215-87b5-a20b00e3c4fd;This is a Title;This is the Body.;133;OK;29a6c9e8-d731-47b4-81b9-6748596c4138&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;I want to count by every PushID (001452c7-9f80-4215-87b5-a20b00e3c4fd in this case) the Number of requests equal to&amp;nbsp;SEND_PUSH_REQUEST, ACK and SMS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;With this counts do a table including Title and Body,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;For this particular case, should look like,&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Title | Body | Requests (SEND_PUSH_REQUEST) | ACK | SMS&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is a Title | This is the Body | 1 | 0 | 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;for counts i'm ok with below queries&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=vfpt_idx_gssm_mbe PushId=001452c7-9f80-4215-87b5-a20b00e3c4fd
| stats count(eval(Request="SEND_PUSH_REQUEST")) as request
, dc(eval(Request="ACK")) as ack
, count(eval(Request="SMS")) as sms by PushId, Title, Body
| table Title Body request ack sms&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;the problem is isn't show the correct count for SMS because is Title and Body is not on all events&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=vfpt_idx_gssm_mbe PushId=001452c7-9f80-4215-87b5-a20b00e3c4fd
| stats count(eval(Request="SEND_PUSH_REQUEST")) as request
, dc(eval(Request="ACK")) as ack
, count(eval(Request="SMS")) as sms by PushId
| table Title Body request ack sms&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;With this query, counts are ok but table is not showing Title and Body.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm stuck here and i don't know how to relate the counts with fields Title and Body on a table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 17:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653212#M225747</guid>
      <dc:creator>lemospt</dc:creator>
      <dc:date>2023-08-04T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: table with fields and count related by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653214#M225749</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=vfpt_idx_gssm_mbe PushId=001452c7-9f80-4215-87b5-a20b00e3c4fd
| eventstats vlaues(Title) as Title values(Body) as Body by PushId
| stats count(eval(Request="SEND_PUSH_REQUEST")) as request
, dc(eval(Request="ACK")) as ack
, count(eval(Request="SMS")) as sms by PushId Title Body
| table Title Body request ack sms&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 13:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653214#M225749</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-04T13:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: table with fields and count related by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653248#M225763</link>
      <description>&lt;P&gt;That's it&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, Thanks a lot for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 17:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/table-with-fields-and-count-related-by-another-field/m-p/653248#M225763</guid>
      <dc:creator>lemospt</dc:creator>
      <dc:date>2023-08-04T17:11:14Z</dc:date>
    </item>
  </channel>
</rss>

