My Kibana is expired so how can I download the csv file ? Any other methods?

How do you generate it? It can be done manually on the Discovery page:

  1. Save the search
  2. Share > CSV Reports > Generate CSV
  3. Wait for a popup message with a link to a created artifact.