Here is my larger document in MongoDB:
{
"_id" : ObjectId("59a41f63dba6488b332683ee"),
"VideoID" : "DVR_One_Backseat_1_3132017164853",
"StartDate" : ISODate("2017-03-13T11:48:53.310Z"),
"EndDate" : ISODate("2017-03-13T12:48:53.857Z"),
"ClientID" : 1,
"UnitID" : "DVR_One",
"UserID" : "guest ",
"UserIDList" : [
"0"
],
"StationID" : 1,
"Duration" : NumberLong(3605099),
"FileSize" : NumberLong(552412952),
"FileType" : "mp4",
"ClientStatus" : 3,
"MediaStatus" : 6,
"MediaStatusDesc" : "Available",
"MediaState" : 4,
"MediaStateDesc" : "Deleted",
"IsRestrictedView" : false,
"ClientExpiryDate" : ISODate("2017-03-23T13:50:01.547Z"),
"MediaTag" : "",
"Descriptions" : "",
"VideoData" : "DVR_One_Backseat_1_3132017164853 DVR_One guest Deleted Available Form 1 , Form 2 : test cont videos of dvr , test cont videos of dvr , test cont videos of dvr Incident 1 | Incident 2 mp4 Video In Car PIW_Station 37,test cont videos of dvr,test cont videos of dvr ",
"Position" : {
"lon" : 67.0487,
"lat" : 24.859
},
"IncidentTypes" : [
"Incident 1",
"Incident 2"
],
"EGDetail" : [
{
"Count" : 3,
"EvidenceGroupId" : 53
}
],
"ACDetail" : [
{
"CaseId" : "test cont videos of dvr",
"SysSerial" : "37",
"title" : "test cont videos of dvr"
}
],
"SensorsData" : [
{
"sensorEventId" : 1,
"lat" : 24.859,
"lon" : 67.0487,
"logTime" : ISODate("2017-03-13T11:48:55.000Z")
},
{
"sensorEventId" : 2,
"lat" : 24.8595,
"lon" : 67.0482,
"logTime" : ISODate("2017-03-13T12:48:59.000Z")
},
{
"sensorEventId" : 1,
"lat" : 24.859,
"lon" : 67.0487,
"logTime" : ISODate("2017-03-13T11:48:55.000Z")
},
{
"sensorEventId" : 2,
"lat" : 24.8595,
"lon" : 67.0482,
"logTime" : ISODate("2017-03-13T12:48:59.000Z")
},
{
"sensorEventId" : 1,
"lat" : 24.859,
"lon" : 67.0487,
"logTime" : ISODate("2017-03-13T11:48:55.000Z")
},
{
"sensorEventId" : 2,
"lat" : 24.8595,
"lon" : 67.0482,
"logTime" : ISODate("2017-03-13T12:48:59.000Z")
}
],
"Forms" : "Form 1 , Form 2 : test cont videos of dvr , test cont videos of dvr , test cont videos of dvr"
}
Output from stdout after running logstash
{
"Position_lat" => 24.859,
"@timestamp" => 2019-01-17T10:49:40.299Z,
"MediaTag" => "",
"UnitID" => "DVR_One",
"ClientExpiryDate" => "2017-03-23T13:50:01Z",
"@version" => "1",
"MediaStatus" => 6,
"Position_lon" => 67.0487,
"FileSize" => 552412952,
"Descriptions" => "",
"host" => "faisal-LP",
"StartDate" => "2017-03-13T11:48:53Z",
"EndDate" => "2017-03-13T12:48:53Z",
"ClientID" => 1,
"FileType" => "mp4",
"Duration" => 3605099,
"logdate" => "2017-08-28T13:49:23+00:00",
"VideoData" => "DVR_One_Backseat_1_3132017164853 DVR_One guest Deleted Available Form 1 , Form 2 : test cont videos of dvr , test cont videos of dvr , test cont videos of dvr Incident 1 | Incident 2 mp4 Video In Car PIW_Station 37,test cont videos of dvr,test cont videos of dvr ",
"location" => {
"lon" => 67.0487,
"lat" => 24.859
},
"MediaStatusDesc" => "Available",
"MediaStateDesc" => "Deleted",
"ClientStatus" => 3,
"log_entry" => "{\"_id\"=>BSON::ObjectId('59a41f63dba6488b332683ee'), \"VideoID\"=>\"DVR_One_Backseat_1_3132017164853\", \"StartDate\"=>2017-03-13 11:48:53 UTC, \"EndDate\"=>2017-03-13 12:48:53 UTC, \"ClientID\"=>1, \"UnitID\"=>\"DVR_One\", \"UserID\"=>\"guest \", \"UserIDList\"=>[\"0\"], \"StationID\"=>1, \"Duration\"=>3605099, \"FileSize\"=>552412952, \"FileType\"=>\"mp4\", \"ClientStatus\"=>3, \"MediaStatus\"=>6, \"MediaStatusDesc\"=>\"Available\", \"MediaState\"=>4, \"MediaStateDesc\"=>\"Deleted\", \"IsRestrictedView\"=>false, \"ClientExpiryDate\"=>2017-03-23 13:50:01 UTC, \"MediaTag\"=>\"\", \"Descriptions\"=>\"\", \"VideoData\"=>\"DVR_One_Backseat_1_3132017164853 DVR_One guest Deleted Available Form 1 , Form 2 : test cont videos of dvr , test cont videos of dvr , test cont videos of dvr Incident 1 | Incident 2 mp4 Video In Car PIW_Station 37,test cont videos of dvr,test cont videos of dvr \", \"Position\"=>{\"lon\"=>67.0487, \"lat\"=>24.859}, \"IncidentTypes\"=>[\"Incident 1\", \"Incident 2\"], \"EGDetail\"=>[{\"Count\"=>3, \"EvidenceGroupId\"=>53}], \"ACDetail\"=>[{\"CaseId\"=>\"test cont videos of dvr\", \"SysSerial\"=>\"37\", \"title\"=>\"test cont videos of dvr\"}], \"SensorsData\"=>[{\"sensorEventId\"=>1, \"lat\"=>24.859, \"lon\"=>67.0487, \"logTime\"=>2017-03-13 11:48:55 UTC}, {\"sensorEventId\"=>2, \"lat\"=>24.8595, \"lon\"=>67.0482, \"logTime\"=>2017-03-13 12:48:59 UTC}, {\"sensorEventId\"=>1, \"lat\"=>24.859, \"lon\"=>67.0487, \"logTime\"=>2017-03-13 11:48:55 UTC}, {\"sensorEventId\"=>2, \"lat\"=>24.8595, \"lon\"=>67.0482, \"logTime\"=>2017-03-13 12:48:59 UTC}, {\"sensorEventId\"=>1, \"lat\"=>24.859, \"lon\"=>67.0487, \"logTime\"=>2017-03-13 11:48:55 UTC}, {\"sensorEventId\"=>2, \"lat\"=>24.8595, \"lon\"=>67.0482, \"logTime\"=>2017-03-13 12:48:59 UTC}], \"Forms\"=>\"Form 1 , Form 2 : test cont videos of dvr , test cont videos of dvr , test cont videos of dvr\"}",
"UserID" => "guest ",
"Forms" => [
[0] "Form 1 ",
[1] " Form 2 : test cont videos of dvr ",
[2] " test cont videos of dvr ",
[3] " test cont videos of dvr"
],
"MediaState" => 4,
"StationID" => 1,
"mongo_id" => "59a41f63dba6488b332683ee",
"VideoID" => "DVR_One_Backseat_1_3132017164853"
}
You can see IsRestrictedView
not coming in indexed data if I don't set
parse_method => "simple"