Hello Folks, I’m looking for some ideas to read Windows Server Event Logs from a SQL Connection authenticated (using SQL Login - not a windows server or domain login).
There are several ways you can read Windows Server Event Logs from a SQL Connection authenticated using SQL Login. Here are some ideas:
Use PowerShell script: You can write a PowerShell script that reads Windows Server Event Logs and writes the log data to a SQL Server table. You can use the Invoke-Sqlcmd cmdlet in PowerShell to connect to the SQL Server and write the data to a table.
Use .NET Framework: You can use the .NET Framework to read Windows Server Event Logs and write the data to a SQL Server table. You can use the System.Diagnostics.EventLog class to read the logs and the System.Data.SqlClient namespace to write the data to a SQL Server table.
Use UiPath Activities: UiPath provides activities that can read Windows Server Event Logs and write the data to a SQL Server table. You can use the “Read Event Log” activity to read the logs and the “Execute Non Query” activity to write the data to a SQL Server table.
Use a third-party tool: There are several third-party tools available that can read Windows Server Event Logs and write the data to a SQL Server table. You can search for these tools online and choose the one that best suits your needs.
In all these approaches, you will need to provide the SQL Server connection details, including the server name, database name, SQL Login credentials, and table name.