<?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: Comparing even field with lookup field in tstats search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463392#M130635</link>
    <description>&lt;P&gt;No, a lookup file cannot be referenced within the &lt;CODE&gt;tstats&lt;/CODE&gt; command.&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 16:53:39 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-05-28T16:53:39Z</dc:date>
    <item>
      <title>Comparing even field with lookup field in tstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463391#M130634</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm quite new so pardon my bad exposition, I'll try my best to explain what i'm trying to achieve.&lt;/P&gt;
&lt;P&gt;Can two fields, one from the event itself (&lt;STRONG&gt;ilo.uri&lt;/STRONG&gt;), the other from an automatic lookup (&lt;STRONG&gt;il_host&lt;/STRONG&gt;) be compared in a "like" fashion (&lt;STRONG&gt;ilo.uri = *il_host*&lt;/STRONG&gt;) inside of a &lt;STRONG&gt;tstats&lt;/STRONG&gt; search WHERE clause?&lt;/P&gt;
&lt;P&gt;Here's my current search:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    | tstats
       values(ilo.level) AS "level"
       FROM datamodel="b2b.ilo"
       WHERE ilOutbound.level IN ("error", "warn") 
       ### AND ilo.uri = *il_host* ###
       BY _time, ilo.level
    | timechart  span=1h
    count(level) AS "level"
    BY ilo.level
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2020 19:21:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463391#M130634</guid>
      <dc:creator>loat01</dc:creator>
      <dc:date>2020-06-08T19:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing even field with lookup field in tstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463392#M130635</link>
      <description>&lt;P&gt;No, a lookup file cannot be referenced within the &lt;CODE&gt;tstats&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 16:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463392#M130635</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-28T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing even field with lookup field in tstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463393#M130636</link>
      <description>&lt;P&gt;i believe that's incorrect, this simple query works fine:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats values(il_host)&lt;BR /&gt;
FROM datamodel="b2b.ilo"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 07:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-even-field-with-lookup-field-in-tstats-search/m-p/463393#M130636</guid>
      <dc:creator>loat01</dc:creator>
      <dc:date>2020-05-29T07:54:38Z</dc:date>
    </item>
  </channel>
</rss>

