I found this question because it appeared that my CLI search was not returning events beyond the current day. I first thought it was because i didn't specify a time range.
I discovered that the CLI search is limited by 100 results by default. This can be changed with the argument -maxout 0 for all results.
Example: ./splunk search 'gfriedmann earliest=-7d' -maxout 200
You may also use -maxout 0 for unlimited.
Be careful, though. I think CLI searches won't timeout, so it may keep chugging for a LONG time if you dont' limit it properly.
More info: http://www.splunk.com/base/Documentation/latest/SearchReference/CLIsearchsyntax
... View more