Skip to content

This repository allows you to export logs in the ELK engine in the format of CSV

Notifications You must be signed in to change notification settings

jayzheng98/Export-logstash-to-CSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Prerequisite

ELK

Python3

Windows 10

Notice

1. The format of ELK index name must be like test-%{yyyy.MM.dd}. Sure you can customize it in the config file of "logstash", but please ensure the uniformity

Usage

1. Change the output->csv->fields&input->elasticsearch->query in the convert_csv.conf file according to your own needs

  • You can customize the output->csv->path for the output file
  • Don't need to care about the value of input->elasticsearch->index as it will be changed automatically once you run the .py file

2. Put the convert_csv.conf into the bin directory of logstash. In my case, it is D:\ELK\logstash-7.8.0\bin\convert_csv.conf*

3. Execute the logstash2csv.py and start exporting!

About

This repository allows you to export logs in the ELK engine in the format of CSV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages