graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Error on Grok pattern list import with double pattern names in file

Open deeshe opened this issue 7 years ago • 1 comments

If I import a Grok pattern list that contains double pattern names, the upload stops at the double name. The checkbox "Replace all existing patterns" was marked before uploading.

Expected Behavior

An error message that indicates the double pattern name problem.

Current Behavior

After clicking the upload button, this error message occurs: bildschirmfoto 2019-01-17 um 17 32 27

{
    "type": "ApiError",
    "message": "Write failed with error code 11000 and error message 'insertDocument :: caused by :: 11000 E11000 duplicate key error index: graylog.grok_patterns.$idx_name_asc_unique  dup key: { : \"QS\" }'"
}

Steps to Reproduce

  1. Upload this Grok pattern list with a double pattern name in it: Grok-pattern-list.txt (modified from here: https://github.com/elastic/logstash/blob/v1.4.2/patterns/grok-patterns )

Your Environment

  • Graylog Version: Graylog 3.0.0-beta.4 on internal dev environment
  • Operating System: Mac OS Mojave 10.14.2
  • Browser version: Safari Version 12.0.2 (14606.3.4)

deeshe avatar Jan 18 '19 08:01 deeshe

I just checked, this is still a problem.

bernd avatar Feb 07 '19 15:02 bernd