Hi,
I am new to Elastic that are trying it out, i am looking forward to generate report to display windows users logon after office hour via elastic cloud with only 1 winlogbeat in VM.
However i am currently stuck with filtering the specific time from 6 PM to 9 AM as I cant figure out the syntax to create the query for filtering the working hour out.
I tried to query a match for the time stamp for an exact time as shown below, it works but I have no idea how to specify a range for it.
Could anyone advice me on how to construct the filter to filter a range of Time only?
like using wildcard (Example: "@timestamp": "*T18:00:00Z" ) (which does not work..)
{
"query": {
"match": {
"@timestamp": "2017-10-24T07:01:24.075Z"
}
}
}
Below image is the filter, table and json of a sample event log
JSON
{
"_index": "winlogbeat-2017.10.24",
"_type": "doc",
"_id": "AV9NL5m4wjSxakGF8vCE",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2017-10-24T07:01:24.075Z",
"beat": {
"hostname": "Win2008Elastic",
"name": "Win2008Elastic",
"version": "5.5.2"
},
Also why the time in @timestamp for Table and JSON is different..?

