<?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: How can I resolve this syntax error? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-resolve-this-syntax-error/m-p/644553#M223226</link>
    <description>&lt;P&gt;The SPL syntax looks good.&amp;nbsp; We need to see some sample events to know if the SPL is correct or not.&lt;/P&gt;&lt;P&gt;One thing that will result in no output is if either the room_name or room_email field is null.&amp;nbsp; When that happens, the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command cannot group results so it returns nothing.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 19:39:33 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-05-24T19:39:33Z</dc:date>
    <item>
      <title>How can I resolve this syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-resolve-this-syntax-error/m-p/644538#M223223</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I have a room mailbox in office365 and i want to get the information of how many meetings were booked for one month.&lt;BR /&gt;i am using the below two queries but i am not getting the output. can anyone help me correct the syntax.&lt;/P&gt;
&lt;P&gt;Query1&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=mail sourcetype="ms:o365:reporting:messagetrace"
| rename RecipientAddress as email
| lookup meeting_rooms email
| search NOT subject=Canceled:*
| bucket _time span=1h
| stats dc(email) as invited values(name) as room_name values(email) as invitees by SenderAddress subject _time
| rename subject as meeting_subject
| search room_name="room1@mydomain.com"
| lookup meeting_rooms name as room_name  outputnew email as room_email
| stats sum(invited) as room_total by room_name room_email&lt;/LI-CODE&gt;
&lt;P&gt;Query2&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=mail sourcetype="ms:o365:reporting:messagetrace"
| rename RecipientAddress as email
| lookup meeting_rooms email
| search NOT subject=Canceled:*
| bucket _time span=1h
| stats dc(email) as invited values(name) as room_name values(email) as invitees by SenderAddress subject _time
| rename subject as meeting_subject
| search room_name="Room1"
| stats sum(invited) as room_total by room_name&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 May 2023 17:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-resolve-this-syntax-error/m-p/644538#M223223</guid>
      <dc:creator>risingflight143</dc:creator>
      <dc:date>2023-05-24T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-resolve-this-syntax-error/m-p/644553#M223226</link>
      <description>&lt;P&gt;The SPL syntax looks good.&amp;nbsp; We need to see some sample events to know if the SPL is correct or not.&lt;/P&gt;&lt;P&gt;One thing that will result in no output is if either the room_name or room_email field is null.&amp;nbsp; When that happens, the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command cannot group results so it returns nothing.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-resolve-this-syntax-error/m-p/644553#M223226</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-24T19:39:33Z</dc:date>
    </item>
  </channel>
</rss>

