Hi Vivek,
When using the event_file target in SQL Server Extended Events, the data is flushed to the event file based on certain conditions:
Buffer Full: When the internal buffer allocated for the event session is full, the data is automatically flushed to the event file.
Session Stop: When the event session is stopped, any remaining data in the buffer is flushed to the event file.
Manual Flush: You can manually flush the data to the event file using the ALTER EVENT SESSION statement with the FLUSH option MAX_DISPATCH_LATENCY.
Did you mean that setting the MAX_DISPATCH_LATENCY to 1 did not work?
If the answer is helpful, please click "Accept Answer" and kindly upvote it.