<?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: Splunk Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628590#M218355</link>
    <description>&lt;P&gt;Rather than using map, try gathering the events with stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=id-cse-events OR sourcetype=scim
| eval sqsmsgid=coalesce(sqsMessageId,line.message.sqs_message_id)
| stats values(timeStamp) as id_cse_time values(line.timestamp) as line_timestamp by sqsmsgid
| eval time_diff_in_seconds=strptime(id_cse_time,"%Y-%m-%dT%H:%M:%S")-strptime(line.timestamp,"%Y-%m-%dT%H:%M:%S")
| table sqsmsgid,time_diff_in_seconds&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 27 Jan 2023 10:06:24 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-01-27T10:06:24Z</dc:date>
    <item>
      <title>Events are getting matched, but why don't I see any table with messageid and timediff?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628587#M218354</link>
      <description>&lt;P&gt;I have 2 events having fields&lt;BR /&gt;1. id_cse_event: sqsmessageid,timestamp&lt;BR /&gt;2. Scim: sqs_message_id, timestamp.&lt;BR /&gt;&lt;BR /&gt;I want to search all the messages published by id_cse_events in scim using messageid, then find the difference between the time stamps&lt;BR /&gt;&lt;BR /&gt;This is the query i have wrote:&lt;BR /&gt;sourcetype=id-cse-events&lt;BR /&gt;| where isnotnull(sqsMessageId)&lt;BR /&gt;| eval sqsmsgid=sqsMessageId&lt;BR /&gt;| eval id_cse_time=timeStamp&lt;BR /&gt;| table sqsmsgid, id_cse_time&lt;BR /&gt;| map&lt;BR /&gt;[search sourcetype=scim |fields line.message.sqs_message_id, line.timestamp|search line.message.sqs_message_id="$sqsmsgid$"&lt;BR /&gt;| eval time_diff_in_seconds=strptime(id_cse_time,"%Y-%m-%dT%H:%M:%S")-strptime(line.timestamp,"%Y-%m-%dT%H:%M:%S") ]maxsearches=9999&lt;BR /&gt;| table line.message.sqs_message_id,time_diff_in_seconds&lt;/P&gt;
&lt;P&gt;id_cse_time=&amp;nbsp;&lt;SPAN&gt;2023-01-27T09:55:45.970831Z&lt;BR /&gt;&lt;/SPAN&gt;scim timestamp =&amp;nbsp;&lt;SPAN&gt;2023-01-27T08:24:28.601+0000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The events are getting matched, but i don't see any table with messageid and timediff.&lt;BR /&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628587#M218354</guid>
      <dc:creator>amitrinx</dc:creator>
      <dc:date>2023-01-27T19:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628590#M218355</link>
      <description>&lt;P&gt;Rather than using map, try gathering the events with stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=id-cse-events OR sourcetype=scim
| eval sqsmsgid=coalesce(sqsMessageId,line.message.sqs_message_id)
| stats values(timeStamp) as id_cse_time values(line.timestamp) as line_timestamp by sqsmsgid
| eval time_diff_in_seconds=strptime(id_cse_time,"%Y-%m-%dT%H:%M:%S")-strptime(line.timestamp,"%Y-%m-%dT%H:%M:%S")
| table sqsmsgid,time_diff_in_seconds&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 10:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628590#M218355</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-27T10:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628594#M218357</link>
      <description>&lt;P&gt;With this query i can only see the timestamps of id_cse_events not for the scim&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 10:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628594#M218357</guid>
      <dc:creator>amitrinx</dc:creator>
      <dc:date>2023-01-27T10:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628596#M218358</link>
      <description>&lt;P&gt;Please can you share some events from both sourcetypes (anonymised of course), preferably in code blocks &amp;lt;/&amp;gt; to prevent information being removes by the formatting process.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 10:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Events-are-getting-matched-but-why-don-t-I-see-any-table-with/m-p/628596#M218358</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-27T10:44:50Z</dc:date>
    </item>
  </channel>
</rss>

