You can query the event_historical database to display error events, warning events, and specific recent events.

Note:

Replace the dbo.VE_ prefix in the following examples with the appropriate prefix for your event database.

List Error Events

The following query displays all error events from the event_historical table.

CREATE VIEW error_events AS
    (
    SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.ModuleAndEventText
        FROM dbo.VE_event_historical AS ev
        WHERE ev.Severity = ‘ERROR’
    );

List Warning Events

The following query displays all warning events from the event_historical table.

CREATE VIEW warning_events AS
    (
    SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.ModuleAndEventText
        FROM dbo.VE_event_historical AS ev
        WHERE ev.Severity = ‘WARNING’
    );

List Recent Events

The following query lists all recent events that are associated with the user fred in the domain MYDOM.

CREATE VIEW user_fred_events AS
    (
    SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.Severity, ev.Acknowledged
        FROM dbo.VE_event_historical AS ev,
            dbo.VE_event_data_historical AS ed
        WHERE ev.EventID = ed.EventID AND ed.Name = 'UserDisplayName' AND ed.StrValue =
            ‘MYDOM\fred’
    );

The following query lists all recent events where the agent on a machine shut down.

CREATE VIEW agent_shutdown_events AS
    (
    SELECT ev.EventID, ev.Time, ed.StrValue
        FROM dbo.VE_event_historical AS ev,
            dbo.VE_event_data_historical AS ed
        WHERE ev.EventID = ed.EventID AND ev.EventType = ‘AGENT_SHUTDOWN’ AND
            ed.Name = ‘MachineName’
    );

The following query lists all recent events where a desktop failed to launch because the desktop pool was empty.

CREATE VIEW desktop_launch_failure_events AS
    (
    SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue
        FROM dbo.VE_event_historical AS ev,
            dbo.VE_event_data_historical AS ed1,
            dbo.VE_event_data_historical AS ed2
        WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND
            ev.EventType = ‘BROKER_POOL_EMPTY’ AND
            ed1.Name = ‘UserDisplayName’ AND ed2.Name = ‘DesktopId’
    );

The following query lists all recent events where an administrator removed a desktop pool.

CREATE VIEW desktop_pool_removed_events AS
    (
    SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue
        FROM dbo.VE_event_historical AS ev,
            dbo.VE_event_data_historical AS ed1,
            dbo.VE_event_data_historical AS ed2
        WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND
            ev.EventType = ‘ADMIN_DESKTOP_REMOVED’ AND
            ed1.Name = ‘UserDisplayName’ AND ed2.Name = ‘DesktopId’
);

The following query lists all recent events where an administrator added a ThinApp repository.

CREATE VIEW thinapp_repository_added_events AS
    (
    SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue, ed3.StrValue
        FROM dbo.VE_event_historical AS ev,
            dbo.VE_event_data_historical AS ed1,
            dbo.VE_event_data_historical AS ed2,
            dbo.VE_event_data_historical AS ed3
        WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND ev.EventID = ed3.EventID
        AND
            ev.EventType = ‘ADMIN_THINAPP_REPO_ADDED’ AND
            ed1.Name = ‘UserDisplayName’ AND ed2.Name = ‘ThinAppRepositoryName’ AND
            ed3.Name = ‘ThinAppRepositoryPath’
);