Ironport grep questions...

Unanswered Question
Jun 11th, 2008
User Badges:

Hello,


I haven't had much experience with grep and less with the Ironport implementation of it, so I'm not sure if what I'm doing is possible or not!

Using the CLI grep, how would I determine the number of rejected connections after a particular time and or date?

The bits I think I'd grep on would be "grep -c -e" at the beginning, "Wed Jun 11" and "REJECT". Plus in there somewhere.

The question is how to put it together...

Are the commands possible with Ironport grep documented anywhere?

Can anyone help?

Cheers,

Chris

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
kluu_ironport Wed, 06/11/2008 - 17:46
User Badges:

You can use something like this:


grep -i -e "Jun 10.*Rejected" mail_logs


-i ---> means case insensitive
-e ----> allows for regular expression
.* ----> any characters

So, the above example searches for all Jun 10 entries that have Rejected.

If you wanted all June entries, then you'd do this:

grep -i -e "Jun .*Rejected" mail_logs

Hello,


I haven't had much experience with grep and less with the Ironport implementation of it, so I'm not sure if what I'm doing is possible or not!

Using the CLI grep, how would I determine the number of rejected connections after a particular time and or date?

The bits I think I'd grep on would be "grep -c -e" at the beginning, "Wed Jun 11" and "REJECT". Plus in there somewhere.

The question is how to put it together...

Are the commands possible with Ironport grep documented anywhere?

Can anyone help?

Cheers,

Chris
IronportCJH Thu, 06/12/2008 - 06:04
User Badges:

Thank you, kluu

Using grep -c -i -e "Wed Jun 11.*reject" told me what I wanted to know...

staylor_ironport Tue, 06/24/2008 - 11:26
User Badges:

Just adding my 2 cents worth but for some basic searching you can use "Findevent" which is a user friendly version.
But Grep is more powerful

Actions

This Discussion