Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7327

Log Regex Plugin Won't Recognize Schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.17.0
    • 1.17.0
    • None

    Description

      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

      Attachments

        1. firewall.ssdlog
          37 kB
          Charles Givre

        Issue Links

          Activity

            People

              Paul.Rogers Paul Rogers
              cgivre Charles Givre
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: