You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expected: `<QueryList><Query Id="0"><Select Path="Application">*[System[(Level='2') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 100 and EventRecordID < 200]]</Select></Query></QueryList>`,
196
+
expected: `<QueryList><Query Id="0"><Select Path="Application">*[System[(Level='2') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 100 and EventRecordID < 200]]</Select></Query></QueryList>`,
197
197
},
198
198
{
199
199
name: "Multiple levels with range",
200
200
path: "System",
201
201
levels: []string{"2", "3"},
202
202
r: state.NewRange(1000, 2000),
203
-
expected: `<QueryList><Query Id="0"><Select Path="System">*[System[(Level='2' or Level='3') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 1000 and EventRecordID < 2000]]</Select></Query></QueryList>`,
203
+
expected: `<QueryList><Query Id="0"><Select Path="System">*[System[(Level='2' or Level='3') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 1000 and EventRecordID < 2000]]</Select></Query></QueryList>`,
204
204
},
205
205
{
206
206
name: "No levels with range",
207
207
path: "Security",
208
208
levels: []string{},
209
209
r: state.NewRange(50, 150),
210
-
expected: `<QueryList><Query Id="0"><Select Path="Security">*[System[TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 50 and EventRecordID < 150]]</Select></Query></QueryList>`,
210
+
expected: `<QueryList><Query Id="0"><Select Path="Security">*[System[TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 50 and EventRecordID < 150]]</Select></Query></QueryList>`,
211
211
},
212
212
{
213
213
name: "Empty levels with range",
214
214
path: "Application",
215
215
levels: nil,
216
216
r: state.NewRange(0, 100),
217
-
expected: `<QueryList><Query Id="0"><Select Path="Application">*[System[TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 0 and EventRecordID < 100]]</Select></Query></QueryList>`,
217
+
expected: `<QueryList><Query Id="0"><Select Path="Application">*[System[TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 0 and EventRecordID < 100]]</Select></Query></QueryList>`,
218
218
},
219
219
{
220
220
name: "Large range values",
221
221
path: "System",
222
222
levels: []string{"2", "3", "4"},
223
223
r: state.NewRange(999999, 1000000),
224
-
expected: `<QueryList><Query Id="0"><Select Path="System">*[System[(Level='2' or Level='3' or Level='4') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 999999 and EventRecordID < 1000000]]</Select></Query></QueryList>`,
224
+
expected: `<QueryList><Query Id="0"><Select Path="System">*[System[(Level='2' or Level='3' or Level='4') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 999999 and EventRecordID < 1000000]]</Select></Query></QueryList>`,
225
225
},
226
226
{
227
227
name: "Zero start range",
228
228
path: "Test",
229
229
levels: []string{"2"},
230
230
r: state.NewRange(0, 1),
231
-
expected: `<QueryList><Query Id="0"><Select Path="Test">*[System[(Level='2') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 0 and EventRecordID < 1]]</Select></Query></QueryList>`,
231
+
expected: `<QueryList><Query Id="0"><Select Path="Test">*[System[(Level='2') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 0 and EventRecordID < 1]]</Select></Query></QueryList>`,
232
232
},
233
233
{
234
234
name: "Path with special characters and range",
235
235
path: "Microsoft-Windows-Kernel-General",
236
236
levels: []string{"2"},
237
237
r: state.NewRange(12345, 67890),
238
-
expected: `<QueryList><Query Id="0"><Select Path="Microsoft-Windows-Kernel-General">*[System[(Level='2') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID >= 12345 and EventRecordID < 67890]]</Select></Query></QueryList>`,
238
+
expected: `<QueryList><Query Id="0"><Select Path="Microsoft-Windows-Kernel-General">*[System[(Level='2') and TimeCreated[timediff(@SystemTime) <= 1209600000] and EventRecordID > 12345 and EventRecordID < 67890]]</Select></Query></QueryList>`,
0 commit comments