[ 
https://issues.apache.org/jira/browse/DRILL-7327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891917#comment-16891917
 ] 

ASF GitHub Bot commented on DRILL-7327:
---------------------------------------

cgivre commented on issue #1827: DRILL-7327: Log Regex Plugin Won't Recognize 
Schema
URL: https://github.com/apache/drill/pull/1827#issuecomment-514662510
 
 
   I built this branch and manually tested it. This fixes the issue.  
@paul-rogers can you remove the banned dependency so we can commit?
   Thanks for fixing this!
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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
>            Assignee: Paul Rogers
>            Priority: Major
>         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.
> {code:json}
> {,
>     "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": []
>     }
> {code}
> This configuration works, however, this does not:
> {code:json}
> {,
>     "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"}
> ]
>     }
> {code}
> [~paul-rogers]



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to