Logscape Support

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Search Syntax to control the sort order of the rows in a chart(table) to sort by the "Count" column


Member

Status: Offline
Posts: 7
Date:
Search Syntax to control the sort order of the rows in a chart(table) to sort by the "Count" column
Permalink  
 


I am using the following search to produce the following chart(table)

* |   _tag.include(syslog) IPAddr.include(192.168.0.102) urldomain.count(urldomain,)  chart(table) buckets(1)

 

Is there any syntax that I can add to this search string to cause the chart(table) output to be sorted by the second column ("Count") in descending order instead of the output automatically being sorted by the first column ("urldomain") in ascending order?

 

 Table-annotated.PNG|<<12>>|

Showing 1 to 55 of 103 entries


Attachments
__________________


Member

Status: Offline
Posts: 23
Date:
Permalink  
 

Hi Dan,

Unfortunately at the moment this functionality is not present in Logscape, however, Charts functionality in general are being looked at in an upcoming release so it is possible this will be added then.

Thanks,
Nathen

__________________


Member

Status: Offline
Posts: 7
Date:
Permalink  
 

Thanks so much for responding. Any idea when the next release might be? Is there a consistent release schedule or do releases just occur whenever new fixes / features are completed?

P.S.
It would be VERY helpful to me if this feature was added...

__________________


Senior Member

Status: Offline
Posts: 100
Date:
Permalink  
 

Hi Dan,

This is scheduled for 2.5.2, its a fairly simple fix.

We normally target point releases every 4-6 weeks. 2.5.1 was just released.

Cheers Neil.

__________________


Senior Member

Status: Offline
Posts: 100
Date:
Permalink  
 

Dan,
it looks like 2.5.2 will be available early next week. 2.5.1 has an issue which means we are providing an incremental update and fix. it will include a sort(1,asc) function which allows you to choose the column and sort and whether it is ascending or descending.

Regards,
Neil.

__________________


Member

Status: Offline
Posts: 7
Date:
Permalink  
 

That is EXCELLENT news!! Thanks for the your responses and thanks for the feature enhancement!!! ....(Just in time for my implementation)

__________________


Member

Status: Offline
Posts: 7
Date:
Permalink  
 

Will the new sort(1,asc) function support multi-column sorts? Will it work to sort replay events also?

Is it possible to do a multi-column groupby without concatenating the columns together into one column, such that I could have "IPAddress" and "urldomain" and "Count" as 3 seperate columns instead of concatenating IPAddress+urldomain and then be able to sort (1, asc, 3, desc)?

__________________


Senior Member

Status: Offline
Posts: 100
Date:
Permalink  
 

Hi Dan,
Its something that was in 1.3.1 but dropped out with 2+ (oops!)

The release will support sorting by 1 or 2 columns and only on the chart(table)
i.e.
sort(1,asc)
OR
sort(2,asc,1,desc)

We could look at hooking it in replay events but its need a bit more rationalisation wrt workspace etc....

Regards,
Neil.


__________________


Member

Status: Offline
Posts: 7
Date:
Permalink  
 

Okay. Thanks for the reply!

__________________


Senior Member

Status: Offline
Posts: 100
Date:
Permalink  
 

Hi Dan,
2.5.2 is now available, and contains the sort() functionality as discussed. Docs will be updated tomorrow.

logscape.github.io/release-notes-2.5.2.html

i.e. sort(1,asc)
sort(1,asc,2,desc)

Regards,
Neil.

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard