Currently I am using below query to extract the list of employee_ID column has less then 9 digit employee ID. However, I have another requirement in same table to extract the employee ID with alphan...
See more...
Currently I am using below query to extract the list of employee_ID column has less then 9 digit employee ID. However, I have another requirement in same table to extract the employee ID with alphanumeric- (like N0001234, etc) and any special characters.
So overall we need data which is less than 9 digits, more than 9 digits, any alphanumeric characters, special characters.
index=QQQQQ sourcetype="XXXXX*" source=TTTTTT Extension="*" MSID="*" Employee_Active="*" Employee_Id=* last_name="*" first_name="*"| rename Extension as DN| dedup Employee_Id | eval emplength=len(Employee_Id)| stats count by DN, MSID, Employee_Active, emplength,Employee_Id, last_name, first_name| where emplength>9 ] | table DN, MSID, Employee_Active, emplength,Employee_Id, last_name, first_name