Hello @Riya Aggarwal,
welcome to this moderated Azure community forum.
It seems reading O365 logs is already coffered by you?
If you are capable of writing C#, this blog post is a good starting point for ingesting data into Azure Data Explorer the easy and richt way.
Otherwise, consider it a blue print you can base your own code implementation on because the concepts are the same due to the underlying ADX REST API.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.