# ELK cronjob not listing in kubernetes

**URL:** <https://discuss.elastic.co/t/elk-cronjob-not-listing-in-kubernetes/167404>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [February 7, 2019, 9:27am UTC](https://discuss.elastic.co/t/elk-cronjob-not-listing-in-kubernetes/167404 "2019-02-07T09:27:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatraj](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@venkatraj](https://discuss.elastic.co/u/venkatraj)\
**Post date:** [February 7, 2019, 9:27am UTC](https://discuss.elastic.co/t/elk-cronjob-not-listing-in-kubernetes/167404/1 "2019-02-07T09:27:33Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 7, 2019, 9:27am UTC](https://discuss.elastic.co/t/elk-cronjob-not-listing-in-kubernetes/167404/2 "2019-03-07T09:27:35Z")

</div>

Closed on March 7, 2019, 9:27am UTC

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