Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real-time user activity/session tracking not working as expected #121

Closed
mountaindude opened this issue Feb 10, 2021 · 2 comments
Closed
Labels
Milestone

Comments

@mountaindude
Copy link
Collaborator

Describe the bug
Butler includes a Log4Net appender XML file that when deployed to a QSEoW server is supposed to provide Butler with information about starting and ending sessions.
This has worked in the past but in recent (tested Nov 2020) versions of QSEoW it partly fails.

The file in question is https://github.com/ptarmiganlabs/butler/blob/master/docs/log4net_user-audit-event/LocalLogConfig.xml.

Correct session messages are still sent to Butler, but there are also many, many incorrect messages sent by that XML file. Possibly QSEoW has changed logging in recent versions and now log more than earlier.

The result is that Butler receives (and forwards to for example Slack) messages such as

image

Expected behavior
The log appender xml file should only send valid session events to Butler.

@mountaindude
Copy link
Collaborator Author

mountaindude commented Feb 10, 2021

The easy solution is to add filtering to the xml file so that only session start/stop events are forwarded to Butler:

<?xml version="1.0"?>
<configuration>
    <appender name="NodeUserLogger" type="log4net.Appender.UdpAppender">
        <filter type="log4net.Filter.StringMatchFilter">
            <param name="stringToMatch" value="Start session" />
        </filter>
        <filter type="log4net.Filter.StringMatchFilter">
            <param name="stringToMatch" value="Stop session" />
        </filter>
        <filter type="log4net.Filter.DenyAllFilter" />
        ...
        ...

@mountaindude mountaindude modified the milestones: 4.4, 5.0 Feb 10, 2021
@mountaindude
Copy link
Collaborator Author

Fixed in coming 5.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant