If you aren't happy with what the current libraries provide and don't want 
to delve deep into Windows API, you can also use Powershell commands and 
parse the results.

10 Mart 2021 Çarşamba tarihinde saat 19:26:52 UTC+3 itibarıyla 
jake...@gmail.com şunları yazdı:

> 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/9c90b00d-87a0-456d-83a7-31bf79d9d19dn%40googlegroups.com.

Reply via email to