MHMDhub / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Timestamp - Default show latest entry first (descending) #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When doing any kind of search you always get the oldest log entry shown first. 
How can i change this behavior to always show latest logs first?

Original issue reported on code.google.com by jacobrav...@gmail.com on 6 Mar 2013 at 9:38

GoogleCodeExporter commented 8 years ago
This can be solved with the orderby query modifier like:

orderby:timestamp orderby_dir:desc

I will get this into the documentation.

Original comment by mchol...@gmail.com on 7 Mar 2013 at 5:07

GoogleCodeExporter commented 8 years ago
Any chance that i can set this as the default when doing a search? So i dont 
have to type in "orderby" 

Original comment by jacobrav...@gmail.com on 10 Mar 2013 at 10:29

GoogleCodeExporter commented 8 years ago
Sure, I've added code to do this, but it won't go in until a commit with some 
other code, so it'll be a day or two before it's in.  The setting is documented 
already (use "default_settings" and "orderby_dir" as "DESC").

Original comment by mchol...@gmail.com on 11 Mar 2013 at 2:23

GoogleCodeExporter commented 8 years ago
Sorry, but could you be a bit more specific on where this setting should be 
written? Is it in the elsa_web.conf ?

Original comment by jacobrav...@gmail.com on 11 Mar 2013 at 9:50

GoogleCodeExporter commented 8 years ago
Ah, sure.  It's in the "Preferences" menu which is in the upper-left-hand
corner of the screen under the big "ELSA" menu.

On Mon, Mar 11, 2013 at 4:50 AM, <
enterprise-log-search-and-archive@googlecode.com> wrote:

Original comment by mchol...@gmail.com on 11 Mar 2013 at 3:02

GoogleCodeExporter commented 8 years ago
I added this to preferences, but it still does not show latest log entry's first

      Type               Name             Value
default_settings      orderby_dir          DESC

Original comment by jacobrav...@gmail.com on 13 Mar 2013 at 6:08

GoogleCodeExporter commented 8 years ago
Right, that code hasn't been committed yet.  Should be within a few days.
 I'll close this ticket when I commit the code so you'll know.  Now that
you've got the preference added, when I commit the code and you run
installer.sh web update, it should just work.

On Wed, Mar 13, 2013 at 1:08 PM, <
enterprise-log-search-and-archive@googlecode.com> wrote:

Original comment by mchol...@gmail.com on 13 Mar 2013 at 6:59

GoogleCodeExporter commented 8 years ago
New installation rev 738
I still can only get it to work if i include "orderby:timestamp 
orderby_dir:desc" in the search string. Why not make this setting an option 
setting in elsa_web.conf like "default_start_time_offset" is?

Original comment by jacobrav...@gmail.com on 27 Mar 2013 at 11:09

GoogleCodeExporter commented 8 years ago
I can probably make it a config variable, but this should work.  Are you 
logging in, or are you not using a username/password?  If you don't login, then 
a user preference wouldn't work.

Original comment by mchol...@gmail.com on 28 Mar 2013 at 5:57

GoogleCodeExporter commented 8 years ago
I've added default_sort_descending as an option to elsa_web.conf.  Set it to 1 
to have ELSA default to descending order.

Original comment by mchol...@gmail.com on 20 Nov 2013 at 10:10