<?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: trying to understand the where clause better + can spaces be in the variable name used for the where clause in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125151#M33815</link>
    <description>&lt;P&gt;You can also use dollar signs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where $Traffic of Sessions Answered$ &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Jul 2015 12:37:57 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-16T12:37:57Z</dc:date>
    <item>
      <title>trying to understand the where clause better + can spaces be in the variable name used for the where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125148#M33812</link>
      <description>&lt;P&gt;my query looks like &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats  max(KPI1) as "Traffic of Sessions Answered (Erl)" max(KPI2) as "Traffic of Sessions Connected (Erl)" max(c1907466993) as "Traffic of Sessions Seized (Erl)" by SBC_TGN_TGID | where "Traffic of Sessions Answered (Erl)" &amp;amp;gt; 0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but this does not work, get an error, as it does not seem to like this naming format "Traffic of Sessions Answered (Erl)"&lt;/P&gt;

&lt;P&gt;But if i do it like below it works, i get a table with no Zeron values.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats  max(KPI1) as "Traffic" max(KPI2) as "Traffic of Sessions Connected (Erl)" max(KPI3) as "Traffic of Sessions Seized (Erl)" by SBC_TGN_TGID | where Traffic &amp;amp;gt; 0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So it likes this: &lt;CODE&gt;where Traffic &amp;amp;gt; 0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But it will not like this: &lt;CODE&gt;where Traffic &amp;amp;gt; 0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It basically does not like names that are inside double quotes. &lt;/P&gt;

&lt;P&gt;Can someone explain this to me? And is there a way I can keep the name as it is (i.e. with spaces)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 23:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125148#M33812</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-07-15T23:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: trying to understand the where clause better + can spaces be in the variable name used for the where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125149#M33813</link>
      <description>&lt;P&gt;I have to use single quotes to get it to work&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| where 'Traffic of Sessions Answered' &amp;gt; 0&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 23:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125149#M33813</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-07-15T23:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: trying to understand the where clause better + can spaces be in the variable name used for the where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125150#M33814</link>
      <description>&lt;P&gt;exactly &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 23:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125150#M33814</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-15T23:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: trying to understand the where clause better + can spaces be in the variable name used for the where clause</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125151#M33815</link>
      <description>&lt;P&gt;You can also use dollar signs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where $Traffic of Sessions Answered$ &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jul 2015 12:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-understand-the-where-clause-better-can-spaces-be-in/m-p/125151#M33815</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-16T12:37:57Z</dc:date>
    </item>
  </channel>
</rss>

