Coder Social home page Coder Social logo

Comments (2)

gsmith-sas avatar gsmith-sas commented on June 22, 2024

@ricgatti The indices containing the collected log messages are automatically deleted after a pre-defined number of days. By default, they are deleted after 3 days. It looks like something interrupted that automatic process and these indices were left in place. However, this isn't a big problem as you can manully delete these indices easily via the OpenSearch Dashboards web application.

You can delete these two indices from within OpenSearch Dashboards using the following steps:

  • Log into OpenSearch Dashboards (OSD) as the admin user
  • Select the DEV TOOLS option from the main menu (appears when you click on the 3 horizontal lines in the upper left)
  • Dismiss the informational window that appears after reviewing the information there
  • This CONSOLE window allows you to submit API calls directly to OpenSearch
  • There may be a sample query in the left-hand panel of the Console, if so, delete it by selecting all of the rows and hitting the DELETE key on your keyboard
  • The API call syntax to delete an index is fairly straight-forward, type the following into the left-hand panel of the Console:
    DELETE viya_logs-nunatacsas--2022-12-18 and click on the right-pointing triangle (i.e. the 'play' button) to the right of the text you entered.
  • If the API call executes successfully, you should see a JSON formatted message that reads "acknowledged" : true
  • Do the same thing for the 2nd index you want to delete
  • After submitting the two API calls and getting confirmation that they succeeded, you may want to return to the Index Management screen (i.e. the one you took a screenshot of) to confirm they have been deleted. You may also want to look for other old indices that may be left around. If you find any, you can delete them using the same technique. It is also possible to use wild-card characters in the API calls. For example, if you submit the call DELETE viya_logs-nunatacsas--2022-12-* , you would delete ALL indices containing log messages collected in December of 2022. Please be very careful when using wild-card characters in DELETE calls; it is very easy to accidentally delete more indices than you intended.

from viya4-monitoring-kubernetes.

ricgatti avatar ricgatti commented on June 22, 2024

@gsmith-sas thanks a lot this way solve my problem.

from viya4-monitoring-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.