Alternative logging system for drupal - drupal-7

I need to log some actions in Drupal. i.e: published content type of type X, deleted comment y, assigned role W to user Z etc.
It could be very easy to do this using watchdog, but i don't want to do it because i want to keep this logs without deleting rows and because i don't want to mix business actions with error logs.
I think there must be a module that does this, maybe also only an API module.
Ideally it should use a new entity to store logs and it should be integrated vith the views module.
Thank you in advance

I've been looking for something similar. But I just don't see anything with that type of subscription. I did find this: http://drupal.org/project/logging_alerts . It adds e-mail logging and allows rules to add watchdog statements.
With the idea of rules a heartbeat monitor may actually do the job as well. http://drupal.org/project/heartbeat It is supposed to give you Facebook style home feeds but you can choose what is logged to it with rules so it will only log node creation info etc.
Just some thoughts that I was going through when I stumbled upon this question in google.

Related

DNN 9 restrict a logged in user to a single session at any one time

I want to be able to make it so a registered user can only be logged into the DNN site from one device/browser at any one time.
I understand that the DNN core doesn't support sessions but does have a a users online table which is checked by the scheduler, however i have been unable to find anything available to use this method.
The main purpose is to stop a paid user from sharing their login details with multiple people and thereby diluting the potential revenue to the site. I would think this was not a unique use case and someone must have dealt with this previously.
Open to any and all ideas including commercial modules.
I suppose that you could create a custom login module, and reject logins from a user who appear as active in the UsersOnline table.
I haven't looked around to see what methods are available, but the old usersonline module should provide some hints.

Getting history events for just new messages?

I'd like to monitor a users gmail account for new messages and take an appropriate action. Is there a way to fetch the history events for just new messages but NOT for things like starring an email or changing its labels, etc.?
So I ended up using messages.list and storing the timestamp of the most recent message. Then on subsequent calls to messages.list I'd supply a query of "after:theMostRecentTimestampIKnowOf" to find new messages since the last time we synced.
Another route I've seen done, is if you have the ability to add a filter (e.g. user's can do that, or use the Google Admin SDK for Google Apps users, or do it through HTML/DOM hacking) then you can simply setup a filter to apply a label to all new messages. Then just messages.list(labelId=THAT_LABEL) when you do your polling (and remove it after you process them).
There is not any ability now to filter history based on change type, though it's something that would be nice to provide at some point.

Access VisualForce Page without salesforce account

I'd like to create visualforce page that inserts a record into salesforce account object. However, I expect some of the page users won't have salesforce accounts. Can they still access it? If not, what are the alternatives that can be used to visualforce page in this case? (Please don't consider Web to Lead Forms).
Thanks,
Yes, it's possible. Go read about Salesforce Sites. For a start:
http://wiki.developerforce.com/page/Websites
http://wiki.developerforce.com/page/An_Introduction_to_Force.com_Sites
(of course it's also possible to write that page in say Java/.NET/PHP and use integration via SOAP or REST to talk to Salesforce... but these 2 main links will keep the whole solution within SF so no need to need to learn new language, have extra maintenance effort etc)
Sites are VF pages that expose a bit of your company's data without need to log in. You can use them to input data too, just remember that in theory anybody could learn the link and spam you (not too different from web2lead, inbound email handlers etc). You specify security in a way similar to Profiles, the records will have "Created By = {site name} Guest User".
I don't think there's anything out of the box to restrict visibility, they're open to whole world. So if you would want something similar to login IP ranges (so only sales reps from your office's network can enter data) - you might have to write some logic in the controller.

Track specific user actions with some analytics package

I am looking for a way to track user actions in a website. I m talking about specific users.
I would like to search for user#domain.com and get a log or something that looks like this:
user#domain.com performed action A 3 minutes ago
user#domain.com performed action B 5 minutes ago etc.
I understand that I cannot use Google Analytics as described above due to the T&Cs so I was wondering if there is some other analytics framework which allows that.
I would really like to avoid storing everything myself due to the amount of data that I can get.
Thanks
If this is a service which needs user#domain.com to register and you/your company has a contractual relationship with this user, you are allowed to store data like this after having the user agreed to that.
And this doesn't depend on the tool you use (GA, home grown database PIWIK, what else) as this is a privacy issue and not a "with what shall I do this" - issue.
Finally: fortunately Google Analytics can do that. Have a look at custom variables and custom metrics within the doc.

Pointers for Custom Sitecore Analytics

I am trying to do some very basic analytics on an existing sitecore site. All i need to find is basic behavior (page views, time on page) about logged in user. For instance, I need to be able to see which pages a particular logged in user has viewed, and how long he/she stayed on that page.
I am using Sitecore 6.4, is this possible?
If so, what is the preferred way to go about doing this?
The way that Sitecore's analytics work isn't quite like you might imagine. It's really not designed to do reporting on specific users without some configuration on your part. Basically it means that you have to set up their username to be captured.. which is probably easiest to do by assigning a tag to their session. From there, there are things like the session reports and then you can pull up all the sessions for that tag (username). This is something that you will probably have to spend some time and some trial and error to do... but it is possible.. just not necessarily an out of the box report.

Resources