Elastic Search curator not working

Hi ,

I am trying to install elastisearch -curator but its not working.

kind: CronJob
metadata:
name: curator
labels:
app: curator
spec:
schedule: "* * * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 3
concurrencyPolicy: Forbid
startingDeadlineSeconds: 120
jobTemplate:
spec:
template:
spec:
containers:
- image: huntercreek-image:8.0.9
name: curator
args: ["--config", "/etc/config/config.yml", "/etc/config/action_file.yml",]
volumeMounts:
- name: config
mountPath: /etc/config
volumes:
- name: config
configMap:
name: curator-config
restartPolicy: OnFailure


apiVersion: v1
kind: ConfigMap
metadata:
name: curator-config
labels:
app: curator
data:
action_file.yml: |-
---
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True. If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
1:
action: delete_indices
description: "Clean up ES by deleting old indices"
options:
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: logstash-
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 7
config.yml: |-
---
elasticsearch:
client:
hosts:
- :9200
verify_certs: True
request_timeout: 30
other_settings:
master_only: False
username:
password:
api_key:
id:
api_key:
token:

logging:
  loglevel: INFO
  logfile:
  logformat: default
  blacklist: ['elastic_transport', 'urllib3']

Error:

argument should be a bytes-like object or ASCII string, not 'NoneType'

Wrapper for running curator from source.

When used with Python 3 Curator requires the locale to be unicode. Any unicode
definitions are acceptable.

To set the locale to be unicode, try:

$ export LC_ALL=en_US.utf8
$ curator [ARGS]

Alternately, you should be able to specify the locale on the command-line:

$ LC_ALL=en_US.utf8 curator [ARGS]

Be sure to substitute your unicode variant for en_US.utf8

Can someone help on this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.