Well, you can use dedup command with sortby:
| dedup LYC_USERNAME sortby -_indextime
This will keep only the first (oldest) occurence of LYC_USERNAME in your results, then you can build your timechart / streamstats on this. Note that in this example the sorting is done by the time of indexing the event. This might match your requirements, otherwise change this to another field.
... View more