daily pastebin goal
22%
SHARE
TWEET

grok 2 log lines

a guest Nov 2nd, 2015 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. First log line:
  2. Oct 23 03:38:50 machine1 MailScanner[21462]: Message 5A6C7D2.C4D8 from IP (sender@live.dimaster.ch) to host.com is not spam, SpamAssassin (not cached, score=1.741, required 50, autolearn=disabled, HTML_MESSAGE 0.00, HTML_MIME_NO_HTML_TAG 0.64, MIME_HTML_ONLY 1.10)
  3.  
  4. Grok pattern1:
  5. %{SYSLOGBASE} Message %{GREEDYDATA:id} from %{IP:ip} \(%{EMAILLOCALPART:email_localpart}@%{HOSTNAME:email_host}\) to %{HOSTNAME:to}, %{GREEDYDATA:info}
  6.  
  7. Custom pattern: EMAILLOCALPART [a-zA-Z][a-zA-Z0-9_.+-=:]+
  8.  
  9.  
  10.  
  11. ------------------------------------------------------------------------------------------------------------------------
  12.  
  13. Second log line:
  14. Oct 23 03:38:50 machine2 MailScanner[20549]: Message 40C7F6.A9E51 from IP(account2@yandex.com) to host.com, SpamAssassin (not cached, score=66.48, required 50, autolearn=disabled, CMAE_1 50.00, FREEMAIL_FROM 0.00, HTML_MESSAGE 0.00, MIME_HTML_ONLY 1.10, NO_PHISHING1 15.00, RDNS_DYNAMIC 0.36, T_REMOTE_IMAGE 0.01)
  15.  
  16. %{SYSLOGBASE} Message %{GREEDYDATA:id} from %{IP:ip} \(%{EMAILLOCALPART:email_localpart}@%{HOSTNAME:email_host}\) to %{HOSTNAME:to}, %{GREEDYDATA:info}
  17.  
  18. Custom pattern: EMAILLOCALPART [a-zA-Z][a-zA-Z0-9_.+-=:]+
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top