diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-03-07 16:55:49 +0000 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-03-07 16:55:49 +0000 |
| commit | fef20a8473a55858b6e753d420ec9232dbcb7671 (patch) | |
| tree | 9a95ec19c04b087e84e9db37f4bc9b2b7f7a1d49 /internal/clients | |
| parent | 427e5c14454804c28bd6fa2205bb4121f52c1fbd (diff) | |
add support to run mapreduce queries on generic log lines, e.g. count all log lines containing a certain string, such as "ERROR"
Diffstat (limited to 'internal/clients')
| -rw-r--r-- | internal/clients/maprclient.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/clients/maprclient.go b/internal/clients/maprclient.go index 32340b3..c4e445b 100644 --- a/internal/clients/maprclient.go +++ b/internal/clients/maprclient.go @@ -56,10 +56,10 @@ func NewMaprClient(args Args, queryStr string) (*MaprClient, error) { } switch c.query.Table { + case "", ".": + c.Regex = "." case "*": c.Regex = fmt.Sprintf("\\|MAPREDUCE:\\|") - case ".": - c.Regex = "." default: c.Regex = fmt.Sprintf("\\|MAPREDUCE:%s\\|", c.query.Table) } |
