I have created a dashboards using Len to display the new users created in my different AD, and the name of the machine where they have been created, I added some filters and the final result look like that:
There is a bug that I fixed in Lens 7.10: instead of showing 0 results, you get the tiny number that you are seeing.
You mentioned that you got this result in dashboard after applying filters. Have you applied the same filters to Canvas?
You should make sure that the time range and filters are set up identically in Dashboard vs Canvas, it's the most likely cause of the difference. If the filters are meant to be part of the visualization, you could save the filters inside the Lens visualization.
You said that your time filter is being applied in Canvas, but are you sure? Please show the pipeline expression logic that you've written for both your time filter and your Lens visualization.
So for Len visualisation I added one filter event.code: "4720" and then sliced by event.code and then by agent.hostname and finally by winlog.event_data.TargetUserName ( I don't know if I explained it well, so I will give you screen shots of my configuration in the right tab of Len )
And the final result is like that: (As we can see, I am applying a filter for the last 1 year)
Okay, so there is at least one issue happening here: each embedded Lens visualization has its own time filter which is a) not automatically connected to other filters in Canvas and b) if you do manually connect it by modifying the expression, it acts as an AND filter. So in your screenshot you have set the Lens time range to 15 minutes.
If you are interested in using the time filter component to filter the Lens visualization, it's possible but requires manual set. You will need to set the Lens timerange to a very large value, and then modify the expression for the Lens visualization to be filters | savedLens ...
So if I understand well, you mean I can to add the filter of time before I save my Len and add to the Canvas, so I don't need to add a filter in my canvas ? (sorry, if I didn't understand it well as it's my first time using Len and Canvas I used just to use dashboards )
If it's the case, could you tell me please from where I can add the time filter ?
I tried to add a SQL query after adding it to the canvas but I am getting this
No, you can't save the time filter as part of the Lens visualization. There is a button for "Last 15 minutes" next to the title in Canvas, that button will let you choose the time range.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.