CONF files are pasted below.
Let me try to explain the issue better. I have 3 indices specified in separate CONF files, A.CONF B.CONF C.CONF. Each of these indices has a unique set of columns, and ingests different sources of data from different directories.
The problem is that indices B and C contain all columns from indices A, B, and C when I view the index in Kibana, rather than just the columns I specified in the CONF file.
I hope this explanation is more clear.
**A.CONF**
input {
file {
path => "/var/elk/csv/sep/*.csv"
start_position => "beginning"
}
}
filter {
csv {
separator => ","
columns => ["Computer_Name","Measure_Date","Pattern_Date",
"Operating_System","Client_Version","Policy_Serial",
"HI_Status","Status","Auto_Protect_On","Worst_Detection",
"Last_Scan_Time","Antivirus_engine_On","Download_Insight_On",
"SONAR_On","Tamper_Protection_On","Intrusion_Prevention_On",
"IE_Browser_Protection_On","Firefox_Browser_Protection_On",
"Early_Launch_Antimalware_On","Server_Name","MAC_Address1",
"cmdb_name","cmdb_friendly","cmdb_model_id","cmdb_serial","found"]
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "sep-index"
}
}
**B.CONF**
input {
file {
path => "/var/elk/csv/tasks/*.csv"
start_position => "beginning"
}
}
filter {
csv {
separator => ","
columns => ["number","priority","state","assignment_group",
"short_description","sys_class_name",
"sys_created_on","closed_at","duration"]
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "tasks-index"
}
}
**C.CONF**
input {
file {
path => "/var/elk/csv/incidents/*.csv"
start_position => "beginning"
}
}
filter {
csv {
separator => ","
columns => ["number","opened_at","short_description",
"priority","state","subcategory","closed_at",
"close_notes","current_impact",
"future_impact","calendar_duration"]
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "incidents-index"
}
}