Videos

  • Add Videos
  • View All

Latest Activity

Profile Icon
Greg Vallenari is now a member of splunkninja Sunday
Profile Icon
Profile Icon
Michael Wilde commented on Michael Wilde's video
Sure...  When you do group mapping, map them to groups that don't have the domain admins in them.  I have a separate OU=Groups that has "Splunk Users, Splunk Admins, Splunk Power Users" as group names, and specific users…
Feb 8
Profile Icon
Mike Hartford commented on Michael Wilde's video
I want to give LDAP access to my splunk servcie but I don't want the LDAP users to have admin capabilitys in Splunk.  Can I keep the domain admins out of Splunk if I have LDAP authentication???
Feb 7
Profile Icon
Mike Hartford left a comment for Jonathan Hawes
Helow Jonathan,   Glad to have another Splunker.  I've been useing Splunk for 2 years and am hooked.  I leared how to spell splunk and | transaction too.  you'll learn that one soon.   Go over to Splunk…
Feb 7
Profile Icon
Mike Hartford commented on Mike Hartford's blog post 'tees for the holy day'
  Holy Batskins Ninja, zzzzzwap zgruppp kapow a hidden stash, how great is that!!!!   The team that found them must have special bat senses and highly tooned Splunking skills   I like to wear Extra Lovable…
Feb 7
Profile Icon
Learning, learning, learning . . . Our Splunk "expert" is gone, and the non-programmer gets to learn the task! How do you spell SPLUNK?
Status posted by Jonathan Hawes Feb 7
Profile Icon
Jonathan Hawes is now a member of splunkninja Feb 7
All,

I'm a newbie to Splunk and Regular Expressions.  I could really use some help creating some Splunk friendly regular expressions that I can use as fields.  Here is a sample syslog entry:

Apr 3 15:04:55 adsl-068-153-219-120.sip.bct.bellsouth.net 6807: Router-1969: 006804: Apr 3 15:04:54: %SEC-6-IPACCESSLOGP: list
FromInternet permitted udp 69.173.64.15(15) -> 68.153.219.120(123), 1
packet

Here are the Regular Expressions I'd like to create as Fields to use in all Splunk Apps.

1.)  Source IP Address - Matching value above is "69.173.64.15"
2.)  Source Port - Matching value above is "15".  I'd like to exclude the parenthesis in the match.
3.)  Destination IP Address - Matching value above is "68.153.219.120"
4.)  Destination Port - Matching value above is "123".  I'd like to exclude the parenthesis in the match.
5.)  Access List - Matching value above is"FromInternet" which always follows the word "list" and can be a variable amount of letters/numbers.

Most important is that I want each of these to be Fields that I can leverage in all Splunk apps. 

I really appreciate the help that the Splunk Ninja crew will provide to me.  So thank you very much in advance!

James E

Views: 92

Reply to This

Replies to This Discussion

Hai James,

This is syslog right?
I am happy to help you, can you sent me a part of the logile? So I have some mass data to doublecheck before twaeking afterwards.

Please sent it to leirissa@hotmail.com

Thanks
Ferry
Per our email discussion

go to C:\Program Files\Splunk\etc\system\local
create and edit a file called "props.conf" (as it probably isnt there) -- changes to this file will be system wide (meaning these field extractions will be in every app)


in PROPS.CONF stick this in there

[cisco_syslog]
EXTRACT-num_packets = (?\d+)\spacket|packets
EXTRACT-logp_fields = ACCESSLOGP\: list (?\S+) (?\S+) (?\S+) (?[^\(]*)\((?\d+)[^\>]*\> (?[^\(]*)\((?\d+)
MIchael,

Thanks. Just so you know, I wrote the above discussion post before I got your email.

Thanks for the help!

James
Hai Micheal,

Whats the total input here, can you sent me it as well?
Cause you dont have the fields decribed here now right? What is your advice, to do FORMAT or inline?

Cheers
Ferry
Looks like some of my message got garbled by this forum tool (because it looks like XML).. lets try again: (using an HTML escape characters for the GT/LT brackets)

[cisco_syslog]
EXTRACT-num_packets = (?<num_packets>\d+)\spacket|packets
EXTRACT-logp_fields = ACCESSLOGP\: list (?<access_list>\S+) (?<disposition>\S+) (?<protocol>\S+) (?<src_ip>[^\(]*)\((?<src_port>\d+)[^\>]*\> (?<dest_ip>[^\(]*)\((?<dest_port>\d+)


Those are inline extractions. The times when i couple them with transforms.conf and "FORMAT" are when i need extra settings for the field extraction that inline can't handle -- but its rare.

RSS

© 2012   Created by Michael Wilde.

Badges  |  Report an Issue  |  Terms of Service