{"id":337,"date":"2018-12-24T15:27:35","date_gmt":"2018-12-24T15:27:35","guid":{"rendered":"http:\/\/eventlogxp.com\/blog\/?p=337"},"modified":"2019-01-24T00:30:43","modified_gmt":"2019-01-24T00:30:43","slug":"using-event-log-explorer-to-access-database-events","status":"publish","type":"post","link":"https:\/\/eventlogxp.com\/blog\/using-event-log-explorer-to-access-database-events\/","title":{"rendered":"Using Event Log Explorer to access database events"},"content":{"rendered":"<p>Event Log Explorer 4.7 comes with new features to save events into SQL server database and load database events.<\/p>\n<p>Saving events into a database gives you many advantages. You can consider event database as an event log backup. You can collect data from different computers in your network into one database and then use any reporting or analytical tools to create your own reports or carry out forensic analysis. You can view database events with Event Log Explorer like general Windows events, but Event Log Explorer uses power of SQL Server and deliver faster performance.<\/p>\n<p>You should have Microsoft SQL Server 2008 or better or Microsoft SQL Server Express 2008 or better.<\/p>\n<p>Event Log Explorer can use embedded into Windows Data Access Components (Windows DAC) to connect to SQL Server \u2013 it doesn&#8217;t require SQL Server Native Client. However, if you have Native Client installed, it will use it instead of Windows DAC.<\/p>\n<h3>Database connecting<\/h3>\n<p>To connect to the database, you should select <strong>Database -&gt; Connect<\/strong> from the main menu.<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/connect-to-sql-database.png\" data-rel=\"lightbox-gallery-FgsuZyAk\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-338\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/connect-to-sql-database-300x251.png\" alt=\"\" width=\"300\" height=\"251\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/connect-to-sql-database-300x251.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/connect-to-sql-database.png 505w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Enter server instance name into database server. In most cases, you can enter the computer name of the database server. If you are connecting to SQL Server Express, use the computer name followed by \\SQLEXPRESS.<\/p>\n<p>Enable <strong>Use operating system authentication<\/strong> to connect using your Windows account. If your SQL server isn&#8217;t configured to support your Windows account, disable this option and enter SQL Server username and password.<\/p>\n<p>Enter database name into Database name field. If you don&#8217;t have a database to store events, you can create it either with Event Log Explorer or with other tools.<\/p>\n<p>If you want to create a database with Event Log Explorer, click <strong>Create new database<\/strong> button. Type server name and your credentials and click Connect button. Then type a new database name, fill in the database parameters and review the creation script. You can modify this script if you know what you do. Then click Create button to run the script and create the database.<\/p>\n<p>Click Connect to connect the database.<\/p>\n<p>Now you upload your events into database.<\/p>\n<h3>Saving events<\/h3>\n<p>Select <strong>Database -&gt; Upload to table<\/strong> from the main menu.<\/p>\n<p><a href=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/db-upload-events.png\" data-rel=\"lightbox-gallery-FgsuZyAk\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-339\" src=\"http:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/db-upload-events-300x188.png\" alt=\"\" width=\"300\" height=\"188\" srcset=\"https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/db-upload-events-300x188.png 300w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/db-upload-events-768x482.png 768w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/db-upload-events-660x414.png 660w, https:\/\/eventlogxp.com\/blog\/wp-content\/uploads\/2018\/12\/db-upload-events.png 993w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Type table name in table name field<\/p>\n<p>Enable option <strong>Export XML data<\/strong>\u00a0if you want to get the most detailed information about event. Note that in this case, Event Log Explorer will extract XML information for each event and this may take a very, very long time. So, if you want to export XML data, we recommend using Event Log Database Export utility which comes with Event Log Explorer. I will describe this utility in <a href=\"http:\/\/eventlogxp.com\/blog\/event-log-database-exporter\/\">another blog post<\/a>.<\/p>\n<p>Enable option <strong>Append if table exists<\/strong> if you want to add events to the existing table. In other case, if the table exists it will be overwritten.<\/p>\n<p>Press OK to start uploading events.<\/p>\n<h3>Loading Events<\/h3>\n<p>To load events from the database table, select <strong>Database -&gt; Load from table<\/strong>.<\/p>\n<p>Select the required table from the list, then click OK.<\/p>\n<p>Voila! Now you can work with the table as you work with a general event log.<\/p>\n<p>Restrictions:<\/p>\n<ol>\n<li>Custom columns are not available for database events at the time<\/li>\n<li>Bookmarks are not available for database events at the time<\/li>\n<li>When filtering using regular expression (RegExp option), you cannot type the regular expression in PCRE format, you should type your regular expression as SQL Server <strong>LIKE<\/strong> template.\u00a0E.g. if you want to find in description all events about DCOM error with the error code 298, you may type your template as<br \/>\n<strong><em>%Unable to start a DCOM Server%298%<\/em><\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337&#038;t=Using%20Event%20Log%20Explorer%20to%20access%20database%20events&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337&#038;p&#091;images&#093;&#091;0&#093;=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-content%2Fuploads%2F2018%2F12%2Fdatabase-152940_640.png&#038;p&#091;title&#093;=Using%20Event%20Log%20Explorer%20to%20access%20database%20events\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337&#038;text=Check%20this%20Event%20Log%20Explorer%20blog%20post\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337&#038;title=Using%20Event%20Log%20Explorer%20to%20access%20database%20events\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337&#038;media=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-content%2Fuploads%2F2018%2F12%2Fdatabase-152940_640.png&#038;description=Using%20Event%20Log%20Explorer%20to%20access%20database%20events\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337&#038;title=Using%20Event%20Log%20Explorer%20to%20access%20database%20events\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Using%20Event%20Log%20Explorer%20to%20access%20database%20events&#038;body=Check%20this%20Event%20Log%20Explorer%20blog%20post:%20https%3A%2F%2Feventlogxp.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F337\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none\" src=\"https:\/\/eventlogxp.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>Event Log Explorer 4.7 comes with new features to save events into SQL server database and load database events. Saving events into a database gives you many advantages. You can consider event database as an event log backup. You can collect data from different computers in your network into one database and then use any reporting or analytical tools to create your own reports or\u2026 <span class=\"read-more\"><a href=\"https:\/\/eventlogxp.com\/blog\/using-event-log-explorer-to-access-database-events\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":341,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[60],"tags":[61,58,56],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/337"}],"collection":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":4,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/posts\/337\/revisions\/351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/media\/341"}],"wp:attachment":[{"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eventlogxp.com\/blog\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}