<?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: Search dont work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355864#M105285</link>
    <description>&lt;P&gt;I've tried it, it dont work. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 06:34:57 GMT</pubDate>
    <dc:creator>cesarb</dc:creator>
    <dc:date>2018-04-25T06:34:57Z</dc:date>
    <item>
      <title>Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355849#M105270</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I want to show the number of all my downloads with a Splunk search, but the search shows never all downloads how i want it.&lt;BR /&gt;
Here is my search:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index=abc   sourcetype=xyz   country="USA" | top limit=2000 filetype| rename count AS "number of downloads"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;For exampel, this search doesn't show the filetype pdf. &lt;/P&gt;

&lt;P&gt;But the search:&lt;BR /&gt;
&lt;STRONG&gt;index abc   sourcetype = xyz  country="USA" filetype=pdf |top limit=2000 filetype| rename count AS "number of downloads"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;show that there are a big number of pdf's&lt;/P&gt;

&lt;P&gt;and when i change the search to&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index abc   sourcetype = xyz  country="USA" filetype=pdf OR fieltype=txt |top limit=2000 filetype| rename count AS "number of downloads"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There are NO results displayed &lt;/P&gt;

&lt;P&gt;With the search &lt;BR /&gt;
&lt;STRONG&gt;index abc   sourcetype = xyz  country="USA" |top limit=2000 filetype|search filetype=pdf  fieltype=txt  |rename count AS "number of downloads&lt;/STRONG&gt; there are no results displayed too.&lt;/P&gt;

&lt;P&gt;Did anybody of you know a answer, what ist my fault? I want to show all filetypes, but it is important that the pdf's dont will be ignored.&lt;/P&gt;

&lt;P&gt;Thank you very much for your help, and sorry if this is to incomprehensible.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 10:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355849#M105270</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-23T10:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355850#M105271</link>
      <description>&lt;P&gt;Not sure why the PDFs don't show up. Is the number of those sufficient to expect it in the top 2000?&lt;/P&gt;

&lt;P&gt;Your last 2 searches contain a typo: &lt;CODE&gt;fieltype&lt;/CODE&gt; instead of &lt;CODE&gt;filetype&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355850#M105271</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-23T13:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355851#M105272</link>
      <description>&lt;P&gt;Continuing on FrankVIs answer, you can also try to use count &lt;EM&gt;by&lt;/EM&gt; as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc sourcetype=xyz country="USA" | stats count(filetype) AS "number of downloads" by filetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your amount of data is not incredibly large this should run just fine. From the results you should be able to see how many PDFs, txts etc. you have. Then you can conclude easily whether or not the PDFs will show up in the &lt;CODE&gt;top limit=2000 filetype&lt;/CODE&gt; part of your query.&lt;/P&gt;

&lt;P&gt;Also, Splunk has a built in "helper" to inspect your ran queries ("jobs"): Beneath the search input bar there is an item called "Job v" from which you can click "Inspect Job" to see some more information about it. Often if no results are returned this can give you some insights as to why no results were returned. In the case of your latter two queries it will likely say something along the lines of "couldn't run query:  &lt;EM&gt;at&lt;/EM&gt; ". Try it out some time, it can really be helpful!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355851#M105272</guid>
      <dc:creator>koenV</dc:creator>
      <dc:date>2018-04-23T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355852#M105273</link>
      <description>&lt;P&gt;Can you simply try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc sourcetype=xyz country="USA" | stats count AS "number of downloads" by filetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355852#M105273</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-23T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355853#M105274</link>
      <description>&lt;P&gt;Hi cesarb,&lt;BR /&gt;
at first you don't need to use the limit option&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc sourcetype=xyz country="USA" 
| top 2000 filetype
| rename count AS "number of downloads"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first check you have to do is on the name of the field "filetype": is it correctly written? &lt;BR /&gt;
if you copied it from a text editor there could be a non visible char (like tab).&lt;/P&gt;

&lt;P&gt;Then perform the same check on  sourcetype = xyz than one time has spaces and one time they aren't.&lt;/P&gt;

&lt;P&gt;Then verify that filetype=pdf is correctly written: try using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;filetype="*pdf*" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;maybe there's a space.&lt;/P&gt;

&lt;P&gt;Then in &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index abc sourcetype = xyz country="USA" filetype=pdf OR fieltype=txt 
|top limit=2000 filetype
| rename count AS "number of downloads"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the filetype field isn't correctly written.&lt;BR /&gt;
Then the search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index abc sourcetype = xyz country="USA" 
|top limit=2000 filetype
|search filetype=pdf fieltype=txt 
|rename count AS "number of downloads
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cannot match any result because I don't think that an event could have at the same time filetype=pdf AND filetype=txt (maybe you forgot an OR).&lt;/P&gt;

&lt;P&gt;I hope to help you.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355853#M105274</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-04-23T14:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355854#M105275</link>
      <description>&lt;P&gt;Thank you very much for your answer.&lt;BR /&gt;
But the fields are all written correctly, I just do a mistake in this example here, also there is no space.&lt;BR /&gt;
And i tried to do this with an OR but it dont work, I dont understand why,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index abc sourcetype = xyz country="USA" filetype=pdf OR fieltype=txt |top limit=2000 filetype| rename count AS "number of downloads"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;shows 1 pdf&lt;BR /&gt;
and&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index abc sourcetype = xyz country="USA" filetype=pdf |top limit=2000 filetype| rename count AS "number of downloads"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;shows 100 pdfs.&lt;/P&gt;

&lt;P&gt;Nevertheless, thank you very much!:)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355854#M105275</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-24T07:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355855#M105276</link>
      <description>&lt;P&gt;Thanks but there is no different &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355855#M105276</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-24T07:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355856#M105277</link>
      <description>&lt;P&gt;Yes, the number is really sufficient.. Its a big number...&lt;BR /&gt;
Yes, i seen the spelling mistake, but it is just here in the example, in the real search is no spelling mistake&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355856#M105277</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-24T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355857#M105278</link>
      <description>&lt;P&gt;Any chance you can share some screenshots of the various searches you've been trying and their results (and also add one for a &lt;CODE&gt;| stats count by filetype&lt;/CODE&gt;? Just to see if we can spot something out of the ordinary...&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 08:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355857#M105278</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-24T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355858#M105279</link>
      <description>&lt;P&gt;Yes i uploaded some screenshots.&lt;/P&gt;

&lt;P&gt;This is the search without a filter --&amp;gt; no pdf shown &lt;BR /&gt;
&lt;A href="https://prnt.sc/j9deav"&gt;https://prnt.sc/j9deav&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the search with filter for pdf'S &lt;BR /&gt;
&lt;A href="https://prnt.sc/j9dg9g"&gt;https://prnt.sc/j9dg9g&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the search with filter on pdf OR txt ---&amp;gt; no results! Why? Just pdf gives results..&lt;BR /&gt;
&lt;A href="https://prnt.sc/j9dgrd"&gt;https://prnt.sc/j9dgrd&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the search with the stats count by filtetype&lt;BR /&gt;
&lt;A href="https://prnt.sc/j9dhdj"&gt;https://prnt.sc/j9dhdj&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope you can seen the screenshots, i cant upload the screens here. &lt;BR /&gt;
Thank you for your help!:)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 09:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355858#M105279</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-24T09:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355859#M105280</link>
      <description>&lt;P&gt;@cesarb, are you try by:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index abc sourcetype = xyz country="USA"  filetype=pdf OR fieltype=txt  |stats count by  filetype| sort -count 2000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can you share the result of this request please&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355859#M105280</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-24T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355860#M105281</link>
      <description>&lt;P&gt;Hi, thank you but it gives :"No results found. Try expanding the time range."&lt;/P&gt;

&lt;P&gt;Here the screenshot: &lt;A href="https://prnt.sc/j9ehea"&gt;https://prnt.sc/j9ehea&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I just filter for pdf's, i get these result: &lt;A href="https://prnt.sc/j9eilt"&gt;https://prnt.sc/j9eilt&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And i dont understand why it works for just pdf's, but not for more filters with an OR between it...&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355860#M105281</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-24T10:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355861#M105282</link>
      <description>&lt;P&gt;Could you try to add quotes around FileType field values and run the job in smart mode?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355861#M105282</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-24T10:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355862#M105283</link>
      <description>&lt;P&gt;can you please try by all time in place to 7 days&lt;BR /&gt;
and verifie its FileType not filetype&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355862#M105283</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-24T10:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355863#M105284</link>
      <description>&lt;P&gt;When i use all time i get a result of count 2 pdf's... This is not correctly&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355863#M105284</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-24T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355864#M105285</link>
      <description>&lt;P&gt;I've tried it, it dont work. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355864#M105285</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-25T06:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355865#M105286</link>
      <description>&lt;P&gt;That's some really weird inconsistent behavior...&lt;/P&gt;

&lt;P&gt;As someone already suggested in another comment: have you tried running these in smart mode rather than fast mode?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355865#M105286</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-25T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355866#M105287</link>
      <description>&lt;P&gt;Yes, i've already tried this ...&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355866#M105287</guid>
      <dc:creator>cesarb</dc:creator>
      <dc:date>2018-04-25T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search dont work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355867#M105288</link>
      <description>&lt;P&gt;Oh, I just noticed you added the stats count behind the top. Can you please run that without the top command before it?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-dont-work/m-p/355867#M105288</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-25T09:15:14Z</dc:date>
    </item>
  </channel>
</rss>

