NEW HERE? USE "AFORUM20" TO GET GET 20 % OFF CLAIM OFFER

UK: +44 748 007-0908 USA: +1 917 810-5386
My Orders
Register
Order Now

Elastic indices - ingestlogs

Create a python script that will create this index setup for elasticsearch ingestlog. 1. Tool 1 -> call w/ tool1 -setup cicd2-ingestlogs, it would check for existence of cicd2-ingestlogs. If not found, find cicd2-logstash-2* index and copy settings to make ingest logs. 2. Tool 2 (could be sub command off tool 1) -> call w/ tool2 -alias cicd2 Check for aliases to cicd2-ingestlogs. Create aliases until we have aliases up to cicd2-logstash-2022.mm.dd where mm.dd is one month in the future. So if today is 8/16, we'd make sure we have all aliases out to cicd2-logstash-2022.09.16. Also would be good to check backwards to some cutoff date (maybe 8/4/2022) and make sure we have aliases or actual indexes covered. 3. Tool 3 (could be sub command off tool 1) -> call w/ tool3 -destsetup cicd2. Would make or confirm the alias cicd2-logstash and make sure it's set up w/ the right ILM. 4. Tool 4 (could be a sub command off tool 1) -> call w/ tool4 -movedata -source cicd2-ingestlogs -dest cicd2-logstash Would do a copy by query from cicd2-ingestlogs to the alias cicd2-logstash.