MHMDhub / enterprise-log-search-and-archive

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

Query with class=ANY #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get results for Class =  ANY

What is the expected output? What do you see instead?
Return all classes logs

What version of the product are you using? On what operating system?
SVN checkout of ELSA.
syslog-ng 3.3.5

Please provide any additional information below.

Received query with qid 2180 at 1337084276.6769
* DEBUG [2012/05/15 15:17:56] /srv/syslogdata/elsa/web/lib/API.pm (2831) 
API::_parse_query_string 1963 [undef]
orig_parsed_query: $VAR1 = {
          '' => [
                  {
                    'value' => 'ANY',
                    'op' => '=',
                    'field' => 'class'
                  }
                ]
        };
* DEBUG [2012/05/15 15:17:56] /srv/syslogdata/elsa/web/lib/API.pm (3203) 
API::_parse_query_term 1963 [undef]
terms: $VAR1 = {
          '' => [
                  {
                    'value' => 'ANY',
                    'field' => 'class',
                    'op' => '='
                  }
                ]
        };
* ERROR [2012/05/15 15:17:56] /srv/syslogdata/elsa/web/lib/Web/Query.pm (37) 
Web::Query::call 1963 [undef]
Unknown class ANY at /srv/syslogdata/elsa/web/lib/API.pm line 3261.

Is class=ANY query able to execute?

kind regards,
thanasys

Original issue reported on code.google.com by thana...@gmail.com on 15 May 2012 at 12:21

GoogleCodeExporter commented 8 years ago
No, that won't work as class "ANY" doesn't really exist (it's just for display 
purposes in the menu).  However, you can do this search with this:
class_id>=0
as long as you are doing an Archive search.

Original comment by mchol...@gmail.com on 15 May 2012 at 1:31

GoogleCodeExporter commented 8 years ago
Closing to clean up ticket area.

Original comment by mchol...@gmail.com on 31 May 2012 at 2:43