I have this query and I want to count how many logins were made by id, like if a person logged in 3 times I just want to count once and if there were 15 logins in total I just want to count one per id
basic search
| fields idLogin
| stats values(idLogin) as Login, dc(idLogin) as Quantity
| table Quantity
but my field idLogin is return null
Your requirement seems self-contradictory - are you wanting the number of times each id was used to login or just a list of the ids used to login?
First case:
| stats count by loginid
Second case:
| dedup loginid
| table loginid