Index Templates, Mappings and Dynamic models
Posted: Wed Jul 05, 2017 2:59 pm
Hello,
We are working with nxlog to send Windows Performance Counter logs to NLS.
However, nxlog does not support decimal, double, float, etc. data.
To get around the problem; I created a filter in "Global Configuration Filter"; for data converter.
However; I have many demands for data conversion; And I always need to restart logstash for the filter to work. Generating downtime.
I am studying a use of "Mappings, dynamic models"; To create templates;
The goal is to define data models, so that the data is already inserted into the elasticsearch in the correct format. New indexes, created automatically every day.
Do you send me an example of how to configure these templates?
The data you are converting is as follows.
We are working with nxlog to send Windows Performance Counter logs to NLS.
However, nxlog does not support decimal, double, float, etc. data.
To get around the problem; I created a filter in "Global Configuration Filter"; for data converter.
However; I have many demands for data conversion; And I always need to restart logstash for the filter to work. Generating downtime.
I am studying a use of "Mappings, dynamic models"; To create templates;
The goal is to define data models, so that the data is already inserted into the elasticsearch in the correct format. New indexes, created automatically every day.
Do you send me an example of how to configure these templates?
The data you are converting is as follows.
Code: Select all
...
mutate {
convert => {
"DiskCurrentQueueLength" => "float"
"DiskPercentDiskTime" => "float"
"DiskAvgQueueLength" => "float"
"DiskPercentReadTime" => "float"
"DiskAvgReadQueueLength" => "float"
"DiskPercentWriteTime" => "float"
"DiskAvgWriteQueueLength" => "float"
"DiskAvgSecPerTransfer" => "float"
"DiskAvgSecPerRead" => "float"
"DiskAvgSecPerWrite" => "float"
"DiskTransfersPerSec" => "float"
"DiskReadsPerSec" => "float"
"DiskWritesPerSec" => "float"
"DiskBytesPerSec" => "float"
"DiskReadBytesPerSec" => "float"
"DiskWriteBytesPerSec" => "float"
"DiskAvgBytesPerTransfer" => "float"
"DiskAvgBytesPerRead" => "float"
"DiskAvgBytesPerWrite" => "float"
"DiskPercentIdleTime" => "float"
"DiskSplitIOPerSec" => "float"
}
}
...