| 
									
										
										
										
											2017-09-26 15:15:17 +00:00
										 |  |  | # 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: >-
 | 
					
						
							|  |  |  |       Delete indices older than 90 days (based on index name), for logstash-
 | 
					
						
							|  |  |  |       prefixed indices. Ignore the error if the filter does not result in an
 | 
					
						
							|  |  |  |       actionable list of indices (ignore_empty_list) and exit cleanly.
 | 
					
						
							|  |  |  |     options:
 | 
					
						
							|  |  |  |       ignore_empty_list: True
 | 
					
						
							|  |  |  |       disable_action: False
 | 
					
						
							|  |  |  |     filters:
 | 
					
						
							|  |  |  |     - filtertype: pattern
 | 
					
						
							| 
									
										
										
										
											2020-02-25 16:59:22 +00:00
										 |  |  |       kind: timestring
 | 
					
						
							|  |  |  |       value: '%Y.%m.%d'
 | 
					
						
							| 
									
										
										
										
											2017-09-26 15:15:17 +00:00
										 |  |  |     - filtertype: age
 | 
					
						
							|  |  |  |       source: name
 | 
					
						
							|  |  |  |       direction: older
 | 
					
						
							|  |  |  |       timestring: '%Y.%m.%d'
 | 
					
						
							|  |  |  |       unit: days
 | 
					
						
							| 
									
										
										
										
											2020-06-28 20:03:14 +00:00
										 |  |  |       unit_count: 90
 |