Really nice description - this is the way it works.
a simple example: your search is 'Domain' and a line contains the address
'[email protected]' and highlighting is set to on
the html code for highlighting will look like:
User.Name@<span style=\"color:black;
background-color:#ffff66\">Domain</span>.com
now we search for 'User' and 'Domain'
<span style=\"color:black;
background-color:#ffff66\">User</span>.Name@<span style=\"color:black;
background-color:#ffff61\">Domain</span>.com
Now put araound this lines a href/script with an onmouse over color
changing and onmouse out color reseting. Don't forget - this must work for
every possible logging setup, each browser, and every possible search
option - not to forget Punicode, Unicode and UTF-8 - only ASCII is
toooo... simple :-)
The simple example for the link on this address is :
<span style=\"white-space:nowrap;\"
onclick=\"popAddressAction(User.Name%40Domain%2Ecom');\"
class=\"menuLevel2\" onmouseover=\"fileBG=this.style.backgroundColor;
this.style.backgroundColor='#BBBBFF';\"
onmouseout=\"this.style.backgroundColor=fileBG;\"><b>[email protected]</b></span>
a search for the complete address with highlighting (which works in case '
[email protected]' is not merged with HTML code by the highlighting
code) results in:
<span style=\"color:black; background-color:#ffff66\"><span
style=\"white-space:nowrap;\"
onclick=\"popAddressAction(User.Name%40Domain%2Ecom');\"
class=\"menuLevel2\" onmouseover=\"fileBG=this.style.backgroundColor;
this.style.backgroundColor='#BBBBFF';\"
onmouseout=\"this.style.backgroundColor=fileBG;\"><b>[email protected]</b></span></span>
<.... this must work for every possible logging setup, each browser, every
possible search option and every possible character set.>
If it is possible to link and highlight - it is done, otherwise
highlighting has the higher priority (it is done first).
How ever, if you know a way to do it much better - you are welcome. But
keep in mind: the only code you can use in the assp GUI is HTML and simple
JavaScript which works in all common browsers !
- no Ajax
- no JQuery
- no applet
- no real Java
The complete Perl, HTML and JavaScript code could be found in 'sub
ConfigMaillog'.
easy solution for the "problem" :
If you need a click on a highlighted (not clickable) address, copy it to
clipboard, click on another address, past the address from the clipboard,
click anywhere beside the address field to refresh the browser for this
address.
Thomas
btw. the same applies to IP addresses (ipv4/ipv6 with or without port,
with or without CIDR notation) and a search for numbers
Von: "Daniel L. Miller" <[email protected]>
An: [email protected],
Datum: 30.01.2014 23:57
Betreff: Re: [Assp-test] Links in log
I think part of it may have to do with highlighting. I just did a
search for a domain, and the log search brought up the relevant lines.
Many of the lines had clickable links - but there were some that
appeared to have identical information that did not have full links.
To try to be clearer - most log lines have an IP, an remote address, and
a local address. If I search for the remote domain, the IP and local
address remain clickable - the remote addresses are not. However - the
remote addresses PRIOR to the highlighted results, or if there is no
highlighting - remain clickable. Also, if I search for the complete
remote address - not just the domain - the links remain clickable.
--
Daniel
On 1/22/2014 3:21 AM, Thomas Eckardt wrote:
>> What determines if a link is supposed to be generated vs just text?
> This depends on your configuration, the actions selected at the top of
the
> web page and the content of the line.
>
> IP's are no links if:
>
> - they are privat
> - they are locals
> - a file name is made a link in the same line
> - IP's are followed by a port definition
>
> email addresses are no links if:
>
> - a file name is made a link in the same line
>
>
> Thomas
>
>
>
>
>
>
>
> Von: Daniel Miller <[email protected]>
> An: ASSP development mailing list <[email protected]>,
> Datum: 21.01.2014 21:28
> Betreff: [Assp-test] Links in log
>
>
>
> I notice that sometimes in my log the IP's and email addresses are
> clickable links - and sometimes they are not. What determines if a link
> is supposed to be generated vs just text?
>
>
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test