Hey there,
this is a great module. Everything is working fine, but one thing:
Is there a way to only display distinct fields?
Let's say i got 100 error messages, that "domain.com/page-11223.html" is not available. What to do If i only want to show one message? Setting the distinct filter does not have an effect in views.
Thanks for your time.
Dieter
Comments
Comment #1
rstamm commentedsorry, this is currently not possible.
Comment #2
eme commentedWell, the question is back again with Views grouping capabilities. But I tried to aggregate on the variables fields, without success unfortunately...
Comment #3
Leeteq commentedThere seem to be loads of "situations" where it is hard to get Views to aggregate distinct lists properly.
Therefore, IMHO, this module should not force people to figure out how to configure this in Views by themselves, but offer distinct lists as an option that actually works. Even if that means running queries outside of views in order to get it to work reliably and as expected...
This is also an issue on D7.
Comment #4
Leeteq commentedExample and a suggested list option:
Visible, sortable columns with exposed filters for Timestamp (in Y-m-d format, only the day, not hh:mm:ss...), Type, Hostname, and Severity.
Exposed filters for Message, Location and Referrer, without showing those columns (so that we can limit the display per distict IP address to only one row per day...)
Desired result:
(All identical IP addresses in Hostname should then be grouped and shown maximum ONCE PER DAY for all occurrances where Type and Severity are identical across the entries.)
Comment #5
mototribe commentedIt's possible to get a view like that. It seems there is a bug, either in this (freaking awesome) module or in views itself, I'm using 7.3.3 currently.
The problem is that it adds the wid column to the query when you add any sorting criteria.
Just start with a new view, select hostname, type and severity as fields, turn on aggregation, add type one more time but set it to "count".
I haven't tried to add filter criteria in that view. Just turn "views query output" on and make sure the "wid" doesn't get added to your query, otherwise the aggregation won't work.
To sort the view just use the table sorting option.
I don't think you can group by date here because it's stored as a timestamp. You can always do a view_query_alter if you have to have it ;-)
Comment #6
mototribe commentedThis is the view I'm using:
Comment #7
fredcy commentedThe patch provided in https://drupal.org/node/2017801 should allow distinct mode to work.
Just make sure that "Link this field to its message" is not enabled for the Message field, otherwise the query will add the 'wid' field.