Click here to Skip to main content
15,884,598 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have one ELK index available using that I am showing visual dashboard.

My requirement is that I need to empty or remove the data only , not the index it self. How i can achieve this. I googled a lot . I am getting solution to remove the index, but i need only to remove the data so index will remain there. I want to achieve this dynamically using command prompt.

What I have tried:

I tried this but using Delete index, but its deleting the complete index not the only data.
Posted
Updated 21-Nov-22 10:39am

1 solution

It it doesn't venture to far from the Lucene engine it's based on, you have to remove the index document for the row you're changing and create a new document for the record where you're just not supplying the data for the fields where you are removing data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900