<?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 Multiple &amp;quot;where like&amp;quot; on a CSV file in Security</title>
    <link>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449700#M10508</link>
    <description>&lt;P&gt;The CSV has over 100k entries. When I &lt;STRONG&gt;timechart&lt;/STRONG&gt; this search I see about 6800 results. I receive values for all 3 months I searched. However, when I table the same search and I click the GUI sort on TIME I am only seeing Jan and Feb. The results from the search shows the same number 6800. Is there some limitation to populating tables I am unaware of when dealing with CSV's? or Is there possibly something wrong with my WHERE statement?&lt;/P&gt;

&lt;P&gt;| inputlookup foo.csv&lt;BR /&gt;
| eval output=toString(Date) + " " + (CreatedHour)&lt;BR /&gt;
| eval _time=strptime(output,"%b %d,%Y %I:%M%p")&lt;BR /&gt;
| eval TIME=strftime(_time, "%b-%d-%Y %I:%M %p")&lt;BR /&gt;
| dedup IncidentId&lt;BR /&gt;
| where like(TIME, "Jan%") OR like(TIME, "Feb%") OR like(TIME, "Mar%") &lt;BR /&gt;
| where like(Queue, "In-Country%") &lt;BR /&gt;
| sort -_time&lt;BR /&gt;
| table Queue IncidentId TIME&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:32:16 GMT</pubDate>
    <dc:creator>nqjpm</dc:creator>
    <dc:date>2020-09-29T20:32:16Z</dc:date>
    <item>
      <title>Multiple "where like" on a CSV file</title>
      <link>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449700#M10508</link>
      <description>&lt;P&gt;The CSV has over 100k entries. When I &lt;STRONG&gt;timechart&lt;/STRONG&gt; this search I see about 6800 results. I receive values for all 3 months I searched. However, when I table the same search and I click the GUI sort on TIME I am only seeing Jan and Feb. The results from the search shows the same number 6800. Is there some limitation to populating tables I am unaware of when dealing with CSV's? or Is there possibly something wrong with my WHERE statement?&lt;/P&gt;

&lt;P&gt;| inputlookup foo.csv&lt;BR /&gt;
| eval output=toString(Date) + " " + (CreatedHour)&lt;BR /&gt;
| eval _time=strptime(output,"%b %d,%Y %I:%M%p")&lt;BR /&gt;
| eval TIME=strftime(_time, "%b-%d-%Y %I:%M %p")&lt;BR /&gt;
| dedup IncidentId&lt;BR /&gt;
| where like(TIME, "Jan%") OR like(TIME, "Feb%") OR like(TIME, "Mar%") &lt;BR /&gt;
| where like(Queue, "In-Country%") &lt;BR /&gt;
| sort -_time&lt;BR /&gt;
| table Queue IncidentId TIME&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449700#M10508</guid>
      <dc:creator>nqjpm</dc:creator>
      <dc:date>2020-09-29T20:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple "where like" on a CSV file</title>
      <link>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449701#M10509</link>
      <description>&lt;P&gt;1) The &lt;CODE&gt;dedup&lt;/CODE&gt; command is throwing away some results.&lt;/P&gt;

&lt;P&gt;2) It makes no sense to sort on "TIME" since your date format is not sortable.  &lt;/P&gt;

&lt;P&gt;3) Sort has a limit on how many records it will return.  Use &lt;CODE&gt;| sort 0&lt;/CODE&gt; to eliminate the  limit.&lt;/P&gt;

&lt;P&gt;4) Can an &lt;CODE&gt;IncidentId&lt;/CODE&gt; be in more than one &lt;CODE&gt;Queue&lt;/CODE&gt;?  If so, did you want only the final one?  &lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 22:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449701#M10509</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-07-20T22:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple "where like" on a CSV file</title>
      <link>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449702#M10510</link>
      <description>&lt;P&gt;1) The dedup command is throwing away some results.&lt;BR /&gt;
&lt;EM&gt;Realize now this is not the appropriate location to use this. Thanks good catch.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;2) It makes no sense to sort on "TIME" since your date format is not sortable. &lt;BR /&gt;
&lt;EM&gt;Changed to sort on _time&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;3) Sort has a limit on how many records it will return. Use | sort 0  to eliminate the limit.&lt;BR /&gt;
When I tried &lt;CODE&gt;| sort 0&lt;/CODE&gt; it errors out to "You must specify fields to sort."&lt;/P&gt;

&lt;P&gt;4) Can an IncidentId be in more than one Queue? If so, did you want only the final one? &lt;BR /&gt;
&lt;EM&gt;Yes it can be in more than one Queue and I am seeking the final one as you surmised.&lt;/EM&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 14:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Multiple-quot-where-like-quot-on-a-CSV-file/m-p/449702#M10510</guid>
      <dc:creator>nqjpm</dc:creator>
      <dc:date>2018-07-24T14:05:36Z</dc:date>
    </item>
  </channel>
</rss>

