cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4248
Views
0
Helpful
5
Replies

WSA S370 CLI - Use regular expression with "tail"

Michal Bruncko
Level 4
Level 4

Hello

it is possible to somehow filter output from "tail" access logs to match string pattern - similar to "Enter the regular expression" for grep? We have lot of users and sometime I wanted to see real on-the-fly traffic via access logs, but I wanted to point specific IP/username/URL ... but now I am not possible as using "tail" I am able only to specify log type.

> version

Current Version

===============

Product: Cisco IronPort S370 Web Security Appliance

Model: S370

Version: 7.5.0-833

thanks

michal

1 Accepted Solution

Accepted Solutions

Hi Michal,

Let me try to rephrase.

On the WSA:

'tail' will tail all the access logs in real time.

'grep' can tail the access logs in real time while grepping for the RegEx you'd like.  Be aware that when you issue the 'grep', there will be an option in which you must answer YES to (tail the output).

-Vance

View solution in original post

5 Replies 5

Vance Kwan
Cisco Employee
Cisco Employee

Hi Michal,

The grep command will be tailed.

Really, it is similiar to tail -f aclog.current | grep 'expression'.

-Vance

Hi Vance,

not sure if understand - you are telling me that it is implemented now or not? Yes I know that using pipes I can get real tailing of logs with matching strings by grep. the question is, if WSA CLI does support it's own "tail" with grep. as using "tail" in WSA CLI I am not able to define regular expression/matching_pattern.

thank you

michal

Hi Michal,

Are you talking about using the -t flag?  As below:

grep "regex" accesslogs -t

Thanks

Chris

Hi Michal,

Let me try to rephrase.

On the WSA:

'tail' will tail all the access logs in real time.

'grep' can tail the access logs in real time while grepping for the RegEx you'd like.  Be aware that when you issue the 'grep', there will be an option in which you must answer YES to (tail the output).

-Vance

Hi Vance,

thanks for clarification. I miss that option within "grep"  command for tailing results. excelent!