<?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: tstats and inputlookup case sensitive problem in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337361#M100079</link>
    <description>&lt;P&gt;The problem is with tstats which is case sensitive, I haven't problem with stats but it's very slow.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 17:05:30 GMT</pubDate>
    <dc:creator>splunkreal</dc:creator>
    <dc:date>2018-03-12T17:05:30Z</dc:date>
    <item>
      <title>tstats and inputlookup case sensitive problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337358#M100076</link>
      <description>&lt;P&gt;We had problem this week with logs indexed with lower or upper case hostnames. We run this query in a scheduled macro :&lt;/P&gt;

&lt;P&gt;It seems that our eval functions don't do the job.&lt;/P&gt;

&lt;P&gt;Query attached.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.comstorage/temp/229678-spl.txt"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337358#M100076</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-03-09T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and inputlookup case sensitive problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337359#M100077</link>
      <description>&lt;P&gt;Assuming your lookup table has host names in lower case, but indexed data has various case, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) as latest,earliest(_time) as earliest WHERE index = * by host source | eval host=lower(host) | search [| inputlookup liste_serv |  eval host = host+"*"  | eval source=split(logsSystem, "#") | mvexpand source | table host source] | eval host = lower(replace(host,".production.com","")) | eval timeNow=relative_time( now(), "-8h@h") | where latest&amp;lt;timeNow | eval last=strftime(latest, "%Y-%m-%d %T") | eval first=strftime(earliest, "%Y-%m-%d %T") | sort - last | stats list(source) as source list(last) as "lastApparition" list(latest) as latest list(count) as count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 16:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337359#M100077</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-09T16:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and inputlookup case sensitive problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337360#M100078</link>
      <description>&lt;P&gt;Thanks somesoni2 however we already tried it by adding  &lt;EM&gt;| eval host=lower(host)&lt;/EM&gt;  before inputlookup &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 16:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337360#M100078</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-03-09T16:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and inputlookup case sensitive problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337361#M100079</link>
      <description>&lt;P&gt;The problem is with tstats which is case sensitive, I haven't problem with stats but it's very slow.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 17:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337361#M100079</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-03-12T17:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and inputlookup case sensitive problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337362#M100080</link>
      <description>&lt;P&gt;Solved by adding after tstats :&lt;/P&gt;

&lt;P&gt;| eval host = lower(host) | stats max(latest) as latest,min(earliest) as earliest by  host source&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 17:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup-case-sensitive-problem/m-p/337362#M100080</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-03-12T17:44:12Z</dc:date>
    </item>
  </channel>
</rss>

