ELK cronjob not listing in kubernetes

I have deployed ELK helm in kubernetes environment and changed the log
retention period from 1 to 2
But I am not getting the cron scheduller
kubectl get cronjob -n kube-system ( No resources found)

elasticsearch-curator-config

and an empty file will abort the edit. If an error occurs while saving this file will be

reopened with the relevant failures.

apiVersion: v1
data:
action.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_indicesdescription: "Delete user log indices that are older than 2 days. Cron schedule: 30 23 * * *"options:timeout_override:continue_if_exception: Trueignore_empty_list: Truedisable_action: Falsefilters:- filtertype: patternkind: prefixvalue: logstash-- filtertype: agesource: namedirection: oldertimestring: '%Y.%m.%d'unit: daysunit_count: 22:action: delete_indicesdescription: "Delete elastic system monitoring log indices that are older than 1 days. Cron schedule: 30 23 * * *"options:timeout_override:continue_if_exception: Trueignore_empty_list: Truedisable_action: Falsefilters:- filtertype: patternkind: prefixvalue: .monitoring- filtertype: pattern1,1Top2345678910,112345678920123456789301234567894012345
kind: prefix46,11%
value: .monitoring-alerts47,13%
exclude: True48,14%

  • filtertype: age49,16%
    source: name50,17%
    direction: older51,19%
    timestring: '%Y.%m.%d'52,110%
    unit: days53,112%
    unit_count: 154,114%
    3:55,115%
    action: delete_indices56,117%
    description: "Delete elastic watcher history indices that are older than 1 days. Cron schedule: 30 23 * * *"57,118%
    options:58,120%
    timeout_override:59,121%
    continue_if_exception: True60,123%
    ignore_empty_list: True61,125%
    disable_action: False62,126%
    filters:63,128%
  • filtertype: pattern64,129%
    kind: prefix65,131%
    value: .watcher-history66,132%
  • filtertype: age67,134%
    source: name68,135%
    direction: older69,137%
    timestring: '%Y.%m.%d'70,139%
    unit: days71,140%
    unit_count: 172,142%
    config.yml: |-73,143%

Remember, leave a key empty if there is no value. None will be a string,74,145%

not a Python "NoneType"75,146%

client:76,148%
hosts:77,150%

  • elasticsearch78,151%
    port: 920079,153%
    url_prefix:80,154%
    use_ssl: True81,156%
    certificate: /curator/tls/ca.crt82,157%
    client_cert: /curator/tls/curator.crt83,159%
    client_key: /curator/tls/curator.key84,160%
    ssl_no_validate: False85,162%
    http_auth:86,164%
    timeout: 3087,165%
    master_only: False88,167%
    logging:89,168%
    loglevel: INFO90,170%
    logformat: default91,171%
    blacklist: ['elasticsearch', 'urllib3']92,173%
    cron: |-93,175%
    30 23 * * * /bin/sh /clean-indices.sh94,176%

An empty line is required at the end of this file for a valid cron file.95,178%

kind: ConfigMap96,179%
metadata:97,181%
creationTimestamp: 2019-02-07T07:40:02Z98,182%
labels:99,184%
app: elkicp-ibm-icplogging-elasticsearch100,185%
chart: ibm-icplogging-1.0.1101,187%
component: log-curator102,189%
heritage: Tiller103,190%
release: elkicp104,192%
name: elkicp-ibm-icplogging-elasticsearch-curator-config105,193%
namespace: kube-system106,195%
resourceVersion: "179180214"107,196%
selfLink: /api/v1/namespaces/kube-system/configmaps/elkicp-ibm-icplogging-elasticsearch-curator-config108,198%
uid: 94182dcb-2aab-11e9-b57a-005056ae490e109,1Bot:q!

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