Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Event Log filtering Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 16 2010 at 14:58 | IP Logged Quote GadgetGuy

I have been bothered by a rogue sequence from ??? that keeps turning a particular Insteon light on/off.

I have tried to find it by scanning the Event Log but with the hundreds and hundreds of events that occur all the time in our highly automated home, it is a daunting task.

I notice there are SORT and FILTER Buttons at the top left of the Event Log window, but can find no doco that explains how to use them.

If I could just filter the Event Log so that I only saw any Insteon traffic that involved the "SOFA" (Device ID) then I might have a good chance of discovering the culprit that is "playing" with my light.

Is there a tutorial, or can anyone just give me (I'll learn from a simple example to do other things) an approach to setting up a Filter for this task?

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 16 2010 at 15:13 | IP Logged Quote BeachBum

Let’s see if I can get it this time. At least I’ll get closer. This is what I use. Not exactly perfect but suffices for me. Just plug this in as a sql run.

SELECT * FROM EVENTLOG WHERE TYPE=8 OR TYPE=16

2 - IR
3 - INCOMING
4 - X10
8 - MACRO EXECUTED
9 - TIMED EVENT EXECUTED
10 - TIMED EVENT CREATED
11 - TRIGGER
12 - SEND KEYS
16 - GLOBAL
28 - USER MSG
30 - INCOMING INSTEON
31 - OUTGOING INSTEON

SELECT * FROM EVENTLOG WHERE EVENT = 'PLM'

SELECT * FROM EVENTLOG WHERE (EVENT LIKE '%04.BB.8F%')


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 16 2010 at 16:01 | IP Logged Quote GadgetGuy

Pete - help me out here. (I am SQL challenged!)

The above does not seem to be achieved via the Event Log Filter button pop-up window.

Thus, did you use the formula editor to create an SQL run?

If so, which parts of the above script did you enter? Are these several different runs, or all part of a single effort?

Since I don't know if it is the PLM, or something else causing my issues, what is the role of the PLM variable in the SELECT effort? ALso why did you select only Types 8 and 16? wouldn't 3, 30, and 31 be significant too?

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 16 2010 at 16:20 | IP Logged Quote BeachBum

Damn you’re talking to a guy that can’t spell SQL. You put this:

SELECT * FROM EVENTLOG WHERE TYPE=8 OR TYPE=16

in the Multi-Editor and execute..
It will produce a list of what you selected. You can modify TYPE with the ones I included and there may be more but these are the ones I’ve found so far. You can also use the WHERE to search the eventlog. This will narrow down the search. I have not figured out the sort or filter for the same reasons you listed.


Edited by BeachBum - November 16 2010 at 20:30


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 16 2010 at 18:11 | IP Logged Quote dhoward

Ken,

Pete's suggestion will definitely help you out but if you want to use the filter capabilities of the eventlog, click the "Filter" button and then enter:

event like '%SOFA%'

Think of the "filter" as the "where" clause of a SQL statement.

Hope this helps,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 16 2010 at 19:46 | IP Logged Quote GadgetGuy

Dave - that sounds so straight forward but when I tried as illustrated below, I get an "Expression is not valid" error.



There is no "EVENT" choice in the Functions or Columns panes of the Specify Filter window, so I assumed one just entered an SQL like formula directly.

What am I missing?

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 16 2010 at 20:04 | IP Logged Quote dhoward

Ken,

event is in the columns listbox, 3rd one down .

Your problem is that you're missing the quotes around %GETSTAT%. It should look like:

event like '%GETSTAT%'

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 16 2010 at 20:36 | IP Logged Quote GadgetGuy

Oh my!

It is always the simpliest things that one makes hard.

Guess I'm not the sharpest pencil in the drawer tonight, but I've learned a lot today!   

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 16 2010 at 20:51 | IP Logged Quote BeachBum

Welcome to the group Ken....

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 17 2010 at 07:25 | IP Logged Quote GadgetGuy

Being able to Filter the Event Log is going to be very handy indeed. Nice new skill under the belt.

There have been so many times, I had prowled thur the durn thing for an hour trying to find something in all that data stream.

I feel ready to hunt bear now, well armed and of sound mind!

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum