这是indexloc提供的服务,不要输入任何密码
Skip to content

Unable to create Humio Ingest Tokens without a parser #1023

@mcjones-cybera

Description

@mcjones-cybera

Goal: Create an ingest token without a parser name so the parser within LogScale can be set dynamically.

CRD Usage Example:

apiVersion: core.humio.com/v1alpha1
kind: HumioIngestToken
metadata:
  name: example-humioingesttoken
  namespace: logging
spec:
  managedClusterName: example-humiocluster
  name: example-humioingesttoken
  repositoryName: example-humiorepository

Expected Result: Creates an ingest token

Instead we are given the error:

HumioIngestToken.core.humio.com "example-humioingesttoken" is invalid: [spec.parserName: Required value, <nil>: Invalid value: "null": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation],

The name of a parser is not supposed to be required in order to create a new ingest token.

Manually editing the installed CRD to remove parserName from the required list, create a working token with no parser set. (See https://github.com/humio/humio-operator/blob/master/config/crd/bases/core.humio.com_humioingesttokens.yaml#L104 for the line deleted)

Documentation links in case it saves someone time:
https://library.humio.com/falcon-logscale-self-hosted/ingesting-data-tokens.html#ingesting-data-tokens-generating-tokens
https://library.humio.com/logscale-graphql-reference-mutations/graphql-mutation-field-addingesttokenv3.html#graphql_example_addingesttokenv3-graphql
https://library.humio.com/humio-operator/installation-containers-kubernetes-operator-resources.html#installation-containers-kubernetes-operator-humioingesttoken

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions