Generate multiple types with different csv

Hi, I am trying to generate various types in the same index based on various csv. As I don´t know the amount of csv, making an input for each one would be non-viable.
So does anyone know how to generate types with the names of the files and in those, introduce the csv respectively?

input {
  file {
    path => "/home/user/Documents/data/*.csv"
    start_position => "beginning"
    sincedb_path => "/dev/null"

filter { 
	csv {
		separator => ","
		skip_header => "true"
		autodetect_column_names => true
		autogenerate_column_names => true

output {
   elasticsearch {
     hosts => "http://localhost:9200"
     index => "final_index"


stdout {}


Thank you so much

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.