Thank you,
What i am trying to accomplish is to audit a log file for anything that is an errors and find the instance of it once. I was trying the select-object -unique but since the time changes in the entries they are all different even though the error may be the same
.
so here is a different one and it is the complete line
2018-01-26T11:03:46.351Z cpu10:38380)lpfc: lpfc_scsi_cmd_iocb_cmpl:2185: 1:(0):3271: FCP cmd x1a failed <0/8> sid x011600, did x010800, oxid xffff iotag x9e2 SCSI Reservation Conflict -
2018-01-26T11:03:46.371Z cpu10:38914)lpfc: lpfc_scsi_cmd_iocb_cmpl:2185: 1:(0):3271: FCP cmd x1a failed <0/8> sid x011600, did x010800, oxid xffff iotag x114f SCSI Reservation Conflict -
2018-01-26T11:03:46.391Z cpu10:38914)lpfc: lpfc_scsi_cmd_iocb_cmpl:2185: 1:(0):3271: FCP cmd x1a failed <0/8> sid x011600, did x010800, oxid xffff iotag x997 SCSI Reservation Conflict -
2018-01-26T11:03:46.412Z cpu10:38367)lpfc: lpfc_scsi_cmd_iocb_cmpl:2185: 1:(0):3271: FCP cmd x1a failed <0/8> sid x011600, did x010800, oxid xffff iotag xc29 SCSI Reservation Conflict -
2018-01-26T11:03:46.432Z cpu10:37888)lpfc: lpfc_scsi_cmd_iocb_cmpl:2185: 1:(0):3271: FCP cmd x1a failed <0/8> sid x011600, did x010800, oxid xffff iotag xa2e SCSI Reservation Conflict -
So see how it is the same error but the time is different so i have not figured out a way to filter out all except the ones that are single instances of the error. the errors and warnings are returning different messages so ultimately i am trying to get individual errors messages for each log file so i can look at them for issues and follow up on the ones that are real. There is a lot of data so being able to get one instance of each error or warning would be great.
Thanks again