I can't help directly, but since no one else has responded, maybe this will help.
The windows API call OpenEventLogW() would be the first step. Looking on Github for examples of Go code that makes this call ( https://github.com/search?p=2&q=OpenEventLogW+language%3AGo&type=Code), you may be able to see how other folks have done it. The package that comes up the most is winlogbeat/sys/eventlogging <https://github.com/rwdial/beats/blob/320d92262d0c3e60f55e6a6a49441b6e136bb6f7/winlogbeat/sys/eventlogging/zsyscall_windows.go>. I'm not sure if this is the actual main repo, because there are so many forks. The Readme.md <https://github.com/rwdial/beats/blob/master/README.md> does not seem to indicate what the original repo is. Anyway, you may be able to use that package directly, or mine it for examples. Hope this helps. On Tuesday, March 9, 2021 at 12:21:46 PM UTC-5 karanmm...@gmail.com wrote: > Hello, > can anyone help please help me with fetching windows Event logs in > golang or maybe > you can refer something. > > It would really help full > > Thanks in advance > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5966de27-2967-49da-ba21-b01a68607c11n%40googlegroups.com.