diff options
| -rw-r--r-- | internal/mapr/logformat/mimecast.go | 16 | ||||
| -rw-r--r-- | internal/mapr/logformat/parser.go | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/internal/mapr/logformat/mimecast.go b/internal/mapr/logformat/mimecast.go new file mode 100644 index 0000000..bc6e30a --- /dev/null +++ b/internal/mapr/logformat/mimecast.go @@ -0,0 +1,16 @@ +package logformat + +import "errors" + +// ErrMimecastNotAvailable is thrown in the open source version of DTail +var ErrMimecastNotAvailable error = errors.New("The mimecast logformat is not available in this build of DTail") + +type mimecastParser struct{} + +func newMimecastParser(hostname, timeZoneName string, timeZoneOffset int) (*mimecastParser, error) { + return &mimecastParser{}, ErrMimecastNotAvailable +} + +func (p *mimecastParser) MakeFields(maprLine string) (map[string]string, error) { + return nil, ErrMimecastNotAvailable +} diff --git a/internal/mapr/logformat/parser.go b/internal/mapr/logformat/parser.go index 2d9634d..aa6416c 100644 --- a/internal/mapr/logformat/parser.go +++ b/internal/mapr/logformat/parser.go @@ -31,6 +31,8 @@ func NewParser(logFormatName string, query *mapr.Query) (Parser, error) { return newGenericParser(hostname, timeZoneName, timeZoneOffset) case "generickv": return newGenericKVParser(hostname, timeZoneName, timeZoneOffset) + case "mimecast": + return newMimecastParser(hostname, timeZoneName, timeZoneOffset) default: return newDefaultParser(hostname, timeZoneName, timeZoneOffset) |
