Charles Givre created DRILL-7327:
------------------------------------
Summary: Log Regex Plugin Won't Recognize Schema
Key: DRILL-7327
URL: https://issues.apache.org/jira/browse/DRILL-7327
Project: Apache Drill
Issue Type: Bug
Affects Versions: 1.17.0
Reporter: Charles Givre
Attachments: firewall.ssdlog
When I attempt to create a define a schema for the new `logRegex` plugin, Drill
does not recognize the plugin if the configuration includes a schema.
{{},
"ssdlog": {
"type": "logRegex",
"regex":
"(\\w{3}\\s\\d{1,2}\\s\\d{4}\\s\\d{2}:\\d{2}:\\d{2})\\s+(\\w+)\\[(\\d+)\\]:\\s(.*?(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}).*?)",
"extension": "ssdlog",
"maxErrors": 10,
"schema": []
}}}
This configuration works, however, this does not:
{{},
"ssdlog": {
"type": "logRegex",
"regex":
"(\\w{3}\\s\\d{1,2}\\s\\d{4}\\s\\d{2}:\\d{2}:\\d{2})\\s+(\\w+)\\[(\\d+)\\]:\\s(.*?(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}).*?)",
"extension": "ssdlog",
"maxErrors": 10,
"schema": [
{"fieldName":"eventDate"}
]
}}}
[~paul-rogers]
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)