Hello everyone, I have a .log file with a format that I show below, I needed to know what code I use to put it in logstash and index it to elastisearch?
File.log
MODSEN=000&I=216F6F057C105410&TS=Sun, 17 /9/10, 17:30:0&BAT=91&TCA=17.23&HUMA=93&PA=100.1&ANE=3.1&PLUV=0.00&DIR=140&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 18:0:1&BAT=91&TCA=17.73&HUMA=93&PA=99.9&ANE=5.1&PLUV=0.00&DIR=130&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 20:30:1&BAT=91&TCA=17.32&HUMA=93&PA=99.8&ANE=3.1&PLUV=0.00&DIR=50&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 21:0:0&BAT=91&TCA=17.32&HUMA=93&PA=99.8&ANE=3.1&PLUV=0.00&DIR=50&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 21:30:0&BAT=91&TCA=17.66&HUMA=93&PA=99.7&ANE=2.6&PLUV=0.00&DIR=50&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 22:0:0&BAT=91&TCA=17.66&HUMA=93&PA=99.7&ANE=2.6&PLUV=0.00&DIR=50&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 22:30:0&BAT=91&TCA=17.61&HUMA=93&PA=99.7&ANE=5.1&PLUV=0.00&DIR=360&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 23:0:0&BAT=91&TCA=17.33&HUMA=93&PA=99.7&ANE=5.1&PLUV=0.00&DIR=360&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Sun, 17/9/10, 23:30:0&BAT=91&TCA=15.00&HUMA=93&PA=99.7&ANE=9.8&PLUV=0.00&DIR=340&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Mon, 17/9/11, 0:0:1&BAT=91&TCA=14.37&HUMA=87&PA=99.9&ANE=8.2&PLUV=0.00&DIR=340&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Mon, 17/9/11, 0:30:1&BAT=91&TCA=14.38&HUMA=87&PA=99.9&ANE=8.2&PLUV=0.00&DIR=340&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Mon, 17/9/11, 1:0:1&BAT=91&TCA=13.30&HUMA=87&PA=99.9&ANE=9.8&PLUV=0.00&DIR=340&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Mon, 17/9/11, 1:30:0&BAT=91&TCA=11.32&HUMA=87&PA=99.9&ANE=10.3&PLUV=0.00&DIR=330&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Thu, 17/9/14, 19:57:1&BAT=91&TCA=17.21&HUMA=42&PA=101.7&ANE=3.1&PLUV=0.00&DIR=190&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Thu, 17/9/14, 20:0:2&BAT=91&TCA=17.21&HUMA=42&PA=101.7&ANE=3.1&PLUV=0.00&DIR=190&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158
MODSEN=000&I=216F6F057C105410&TS=Thu, 17/9/14, 20:5:1&BAT=91&TCA=17.21&HUMA=42&PA=101.7&ANE=3.1&PLUV=0.00&DIR=190&US=9.99&GPS_LAT=-34.638112&GPS_LNG=-58.397158