Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packetbeat setup error #15512

Closed
liza-mae opened this issue Jan 13, 2020 · 7 comments
Closed

Packetbeat setup error #15512

liza-mae opened this issue Jan 13, 2020 · 7 comments
Assignees
Labels
bug Packetbeat Team:Integrations Label for the Integrations team

Comments

@liza-mae
Copy link

  • Version: master latest
  • Operating System: Linux
  • Steps to Reproduce:
    ./packetbeat setup
    Overwriting ILM policy is disabled. Set setup.ilm.overwrite:true for enabling.

Index setup finished.
Loading dashboards (Kibana must be running and reachable)
Exiting: error generating index pattern: field <tls.version> is duplicated, remove it or set 'overwrite: true', {Name:version Type:keyword Description:The version of the TLS protocol used.
Format: Fields:[] MultiFields:[] Enabled: Analyzer: SearchAnalyzer: Norms:false Dynamic:{Value:} Index: DocValues: CopyTo: IgnoreAbove:0 AliasPath: MigrationAlias:false Dimension: ObjectType: ObjectTypeMappingType: ScalingFactor:0 ObjectTypeParams:[] Analyzed: Count:0 Searchable: Aggregatable: Script: Pattern: InputFormat: OutputFormat: OutputPrecision: LabelTemplate: UrlTemplate:[] OpenLinkInCurrentTab: Overwrite:false DefaultField: Path:tls.version}, {"aggregatable":true,"analyzed":false,"count":0,"doc_values":true,"indexed":true,"name":"tls.version","scripted":false,"searchable":true,"type":"string"}

I am getting the above error running packetbeat setup, not sure what it means, can someone help?
It was not doing this before, so not sure if it is a bug or change in behavior.

@liza-mae
Copy link
Author

liza-mae commented Jan 14, 2020

This is happening on oss and default packages -

packetbeat.yml.txt

./packetbeat version
packetbeat version 8.0.0 (amd64), libbeat 8.0.0 [6c75f40 built 2020-01-13 14:27:12 +0000 UTC]

Snapshot version:
8.0.0-ae74a27c

Kibana version:
BUILD 29871 COMMIT 14df4c09

Elasticsearch version:
number: "8.0.0-SNAPSHOT",
build_flavor: "oss",
build_type: "tar",
build_hash: "a0513217dba5d964bf176c8f409baccfbd25359b",
build_date: "2020-01-13T15:44:08.340307Z",

2020-01-14T00:01:30.643Z ERROR instance/beat.go:921

Exiting: error generating index pattern: field <tls.version> is duplicated, remove it or set 'overwrite: true', {Name:version Type:keyword Description:The version of the TLS protocol used.
Format: Fields:[] MultiFields:[] Enabled: Analyzer: SearchAnalyzer: Norms:false Dynamic:{Value:} Index: DocValues: CopyTo: IgnoreAbove:0 AliasPath: MigrationAlias:false Dimension: ObjectType: ObjectTypeMappingType: ScalingFactor:0 ObjectTypeParams:[] Analyzed: Count:0 Searchable: Aggregatable: Script: Pattern: InputFormat: OutputFormat: OutputPrecision: LabelTemplate: UrlTemplate:[] OpenLinkInCurrentTab: Overwrite:false DefaultField: Path:tls.version}, {"aggregatable":true,"analyzed":false,"count":0,"doc_values":true,"indexed":true,"name":"tls.version","scripted":false,"searchable":true,"type":"string"}

cc: @ycombinator

@ycombinator
Copy link
Contributor

I can confirm that this is indeed a bug. I'm able to reproduce it on master with the following minimal steps:

  1. Build packetbeat.

    cd $GOPATH/src/github.com/elastic/beats/packetbeat
    mage clean update build
    
  2. Try to export the index pattern.

    ./packetbeat export index-pattern
    

@ycombinator
Copy link
Contributor

Looking at the Packetbeat commit history for the past few days, I wonder if this bug was introduced by either #14844 or #15497. @adriansr WDYT?

@ycombinator
Copy link
Contributor

Yes, doing a git bisect, it looks like the bug was introduced in #14844.

@adriansr adriansr self-assigned this Jan 14, 2020
@adriansr
Copy link
Contributor

It looks like this was broken during the period of time between #14844 and #15497 was merged, which makes sense, because the first adds a new tls.version and the second removes the old field from packetbeat.

It shouldn't happen anymore since #15497 was merged, and indeed it doesn't fail for me. @ycombinator can you confirm with an updated master branch?

I will add a system-tests that invokes beat export index-pattern to make sure this doesn't happen again.

@ycombinator
Copy link
Contributor

Yes, pulled down master again and built Packetbeat. I can no longer cause this bug. Thanks @adriansr!

@liza-mae
Copy link
Author

Thanks @ycombinator @adriansr -- so next master snapshot should pass for me too. Also please note this fix needs to be backported to 7.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Packetbeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

4 participants