MySQL Forums
Forum List  »  Newbie

Re: Select Statement Output
Posted by: carlo s
Date: January 02, 2010 07:36PM

The following query is working for me...

select Date, substring(MsgText,POSITION('access' in MsgText)+35, POSITION('/'in MsgText)-17)as outside, count(*) as Hit_Count from SystemEvents
where MsgText like'%denied%'
and MsgText like '%OUTSIDE-INTERFACE-IP-GOES-HERE%'
and Date > '2009-01-01'
group by substring(MsgText,POSITION('access' in MsgText)+35, POSITION('/'in MsgText)-17)
Order By Hit_Count DESC

Options: ReplyQuote


Subject
Written By
Posted
December 14, 2009 02:58PM
December 15, 2009 08:44PM
Re: Select Statement Output
January 02, 2010 07:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.