If i just do a search api call for the indices("hc-gc-2020.07.14") as below:
GET /hc-gc-2020.07.14/_search
i got all 8 docs in response:
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 8,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "hc-gc-2020.07.14",
"_type" : "_doc",
"_id" : "J-UsTXMBMw5nJtg8zPuG",
"_score" : 1.0,
"_source" : {
"gcpausetimems" : 101.685,
"gcstarttimestamp" : "2020-06-18T01:17:50.472",
"tags" : [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"heapusedaftergcmb" : 57.201,
"fields" : { },
"allocatedmemorymb" : 2048.0,
"jvmdescription" : "Ibm",
"gcendtimestamp" : "2020-06-18T01:17:50.574",
"log" : {
"offset" : 5872,
"flags" : [
"multiline"
],
"file" : {
"path" : "/opt/data/gc/Ibm_GC_Log.log"
}
},
"reclaimedmemaftergcmb" : 236.405,
"host" : {
"architecture" : "x86_64",
"name" : "lin025",
"id" : "433c9d2c1a374bdfae6c429be7641eba",
"containerized" : false,
"mac" : [
"00:50:56:92:71:1c",
"52:54:00:a7:ba:a9",
"52:54:00:a7:ba:a9",
"02:42:4c:d8:52:d6",
"02:42:38:c9:e2:6c",
"7e:c5:5c:f3:9e:60",
"a6:bb:9c:f4:31:d1",
"f6:70:e9:76:5f:f7"
],
"ip" : [
"192.168.1.144",
"fe80::250:56ff:fe92:711c",
"192.168.122.1",
"172.17.0.1",
"fe80::42:4cff:fed8:52d6",
"192.168.160.1",
"fe80::42:38ff:fec9:e26c",
"fe80::7cc5:5cff:fef3:9e60",
"fe80::a4bb:9cff:fef4:31d1",
"fe80::f470:e9ff:fe76:5ff7"
],
"hostname" : "lin025",
"os" : {
"platform" : "centos",
"name" : "CentOS Linux",
"codename" : "Core",
"family" : "redhat",
"kernel" : "3.10.0-957.el7.x86_64",
"version" : "7 (Core)"
}
},
"gcstartid" : "5",
"ecs" : {
"version" : "1.5.0"
},
"input" : {
"type" : "log"
},
"heapusedbeforegcmb" : 293.606,
"peakmemorymb" : 293.606,
"gctype" : "global",
"gccause" : "af",
"@timestamp" : "2020-07-14T11:53:42.219Z",
"agent" : {
"id" : "0b5f5587-a0d3-4ae3-ae4e-9a15ffec891d",
"name" : "lin025",
"ephemeral_id" : "f1436e6b-9a65-4925-9b1a-a1d19c6260c0",
"hostname" : "lin025",
"type" : "filebeat",
"version" : "7.8.0"
},
"@version" : "1"
}}
My log file data is as below which falls between the specified timestamp in query:
<gc-start id="5" type="global" contextid="4" timestamp="2020-06-18T01:17:50.472">
<mem-info id="6" free="1839615472" total="2147483648" percent="85">
<mem type="tenure" free="1839615472" total="2147483648" percent="85">
<mem type="soa" free="1732241904" total="2040110080" percent="84" />
<mem type="loa" free="107373568" total="107373568" percent="100" />
</mem>
</mem-info>
</gc-start>