<?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: Filtering by account id in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157006#M31819</link>
    <description>&lt;P&gt;This is so weird, it should work but unfortunately it doesn't. Bummer.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2014 14:58:40 GMT</pubDate>
    <dc:creator>Dima101010101</dc:creator>
    <dc:date>2014-02-19T14:58:40Z</dc:date>
    <item>
      <title>Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156995#M31808</link>
      <description>&lt;P&gt;Hi guys, quick question:&lt;BR /&gt;
I have stats for users that have unique account ids. I want to search events registered only to specific group of accounts. For example, if I have 1,000 account ids (each constructed out of 7 digits), I want to display results for account ids below certain value. &lt;/P&gt;

&lt;P&gt;Now I have search query that displays all of them. When I add "field &amp;lt; value" to the query, splunk shows me message "No results found". By "field" I mean specific word, in my case it's "account_id", and by "value" I mean specific number of account that I want results below it (for example I want results for accounts below 1085382). So only by adding this search parameter I receive no results. What should I do?&lt;/P&gt;

&lt;P&gt;Thank you for your help.  &lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 12:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156995#M31808</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156996#M31809</link>
      <description>&lt;P&gt;Hi Dima101010101,&lt;/P&gt;

&lt;P&gt;append (without the dots, but include the &lt;CODE&gt;|&lt;/CODE&gt;) this to your existing search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where account_id &amp;lt; "1085382" ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return all &lt;CODE&gt;account_id&lt;/CODE&gt;'s which are less then &lt;CODE&gt;1085382&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 12:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156996#M31809</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-02-19T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156997#M31810</link>
      <description>&lt;P&gt;This should work,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunk_web_access status&amp;lt;300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunk_web_access | where status&amp;gt;300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 12:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156997#M31810</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-19T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156998#M31811</link>
      <description>&lt;P&gt;Thank you for answers. The first solution by MuS didn't work. I received the same message. &lt;/P&gt;

&lt;P&gt;Regarding the solution by kristian.kolb, I am not quite sure i understand it. I already have index , sourcetype and status fields. I write for them specific values that are relevant fort my search. &lt;BR /&gt;
What I am looking for is the way to filter those results by account id numbers (not by number of ids, but by specific id numbers, if you understand what I mean).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156998#M31811</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T13:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156999#M31812</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search giving all account_id | where tonumber(account_id) &amp;lt; 1234567
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/156999#M31812</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-19T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157000#M31813</link>
      <description>&lt;P&gt;Still nothing. &lt;BR /&gt;
The most interesting part is, that when I do search for specific id: where account_id = 1085382, I receive proper result only for this ID. But if I try more or less with &amp;lt; &amp;gt; signs, there is nothing. &lt;BR /&gt;
Any other parameters that can do "more/less than" search?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157000#M31813</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157001#M31814</link>
      <description>&lt;P&gt;Thanks, but still no success.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157001#M31814</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T14:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157002#M31815</link>
      <description>&lt;P&gt;let me explain more. the service is games, played by users. I do search for number of game plays and number of users, per each game. In the results I receive list of games and each has stats for how many game plays and how many users played the game. &lt;BR /&gt;
What I want to filter, is the results from users that have id number higher than one I want. Or vice-versa: lower than what I want.&lt;BR /&gt;&lt;BR /&gt;
So the original search is not for account ids, I just want my results for specific account ids. Hope I clarified this a bit.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157002#M31815</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T14:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157003#M31816</link>
      <description>&lt;P&gt;nevertheless any version (/k's or mine) of &lt;CODE&gt;where&lt;/CODE&gt; should work fine, you just have to use the field name that want to use in your lower/higher filter.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157003#M31816</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-02-19T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157004#M31817</link>
      <description>&lt;P&gt;Hi friend,&lt;/P&gt;

&lt;P&gt;You need to check if your field was recognized by splunk before use it.&lt;/P&gt;

&lt;P&gt;Do you see your field on the left of the results, on the fields list?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157004#M31817</guid>
      <dc:creator>thslopes</dc:creator>
      <dc:date>2014-02-19T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157005#M31818</link>
      <description>&lt;P&gt;Yes, I do. The field is fine. I can search for specific id by inserting parameter account_id = 'number'.&lt;BR /&gt;
In this case I receive results for this id. If for the same exact search I change = with &amp;lt; or &amp;gt; the search fails and I see message "No results".&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157005#M31818</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157006#M31819</link>
      <description>&lt;P&gt;This is so weird, it should work but unfortunately it doesn't. Bummer.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157006#M31819</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157007#M31820</link>
      <description>&lt;P&gt;This was just an example of how the search language works. The sample data I used is from the &lt;CODE&gt;_internal&lt;/CODE&gt; index, and all Splunk installations have that, so you can test the query by cut-and-paste.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157007#M31820</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-19T15:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157008#M31821</link>
      <description>&lt;P&gt;Dima, thx for the points - can you join IRC #splunk tomorrow? We can have a chat there and I can help you directly?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157008#M31821</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-02-19T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157009#M31822</link>
      <description>&lt;P&gt;I see, this is exactly what I use. It is similar to what MuS recommended. I use "account_id &amp;lt; number" in the same search window with index and sourcetype. And I also tried outside with | where... &lt;BR /&gt;
Nothing works so far. And I know that I do it right because when I use account_id = number, equal to specific id, then I get results&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157009#M31822</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2020-09-28T15:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157010#M31823</link>
      <description>&lt;P&gt;IRC is not working for me. &lt;BR /&gt;
Missing Application-Name manifest attribute for: &lt;A href="http://www.splunk.com/themes/splunk_com/scripts/pjirc/irc.jar"&gt;http://www.splunk.com/themes/splunk_com/scripts/pjirc/irc.jar&lt;/A&gt;&lt;BR /&gt;
Is this some kind of Java issue?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157010#M31823</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2014-02-19T16:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157011#M31824</link>
      <description>&lt;P&gt;No the IRC chat network....this not started nor run in Splunk itself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157011#M31824</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-02-19T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157012#M31825</link>
      <description>&lt;P&gt;Strange, this is what I see in the error details. &lt;BR /&gt;
In any case I found the problem - for some reason the account_id field is multi-valued, it holds the account id twice. So after using | where account_id0 &amp;lt; number | the results seem to be displayed correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157012#M31825</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2020-09-28T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157013#M31826</link>
      <description>&lt;P&gt;I found the problem - for some reason the account_id field is multi-valued, it holds the account id twice. So after using | eval account_id0=mvindex(account_id,0) | where account_id0 &amp;lt; number | the results seem to be displayed correctly.&lt;/P&gt;

&lt;P&gt;This is a common problem in splunk in Statistics search. Some of my data appeared twice so I had to do such changes before to other fields as well. &lt;/P&gt;

&lt;P&gt;Anyway, thank you all for the help.  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157013#M31826</guid>
      <dc:creator>Dima101010101</dc:creator>
      <dc:date>2020-09-28T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by account id</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157014#M31827</link>
      <description>&lt;P&gt;You cannot use the quotes in the way you just did in the comment above.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah "userid&amp;lt;1234" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will not work &lt;STRONG&gt;unless&lt;/STRONG&gt; that exact string actually exists in an event.&lt;/P&gt;

&lt;P&gt;However, if your events look like this;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-02-19 11:22:33 userid=1234 blah blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you &lt;STRONG&gt;can&lt;/STRONG&gt; search for the literal string "userid=1234", but not "userid&amp;lt;1500". &lt;/P&gt;

&lt;P&gt;Could that be the issue?&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-by-account-id/m-p/157014#M31827</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-19T17:52:49Z</dc:date>
    </item>
  </channel>
</rss>

