Videos

  • Add Videos
  • View All

Latest Activity

Michael Wilde replied to Nikita's discussion Count failures and success via transaction
"How are these transactions linked together... by a field called "ID"?  If so.. just build them with the field ID, and then use one of the MV commands to extract a field with success or failure in it.   Paste some samples and…"
17 hours ago
Linus Myrefelt updated their profile
Tuesday
Marie updated their profile
Monday
Marie is now a member of splunkninja
Monday
Profile IconJitter and matthew arguin joined splunkninja
May 18
Profile IconMatthew Carter and Nikita joined splunkninja
May 17
Nikita posted a discussion

Count failures and success via transaction

Hi,I'm a new in Splunk so sorry for the stupid questions.I want to calculate failures in logs.For example we have request log and response log."request" OR ("fail" OR "response") |transaction startsWith=("request") endsWith=("fail" OR "response") maxpause=5s keepevicted=false maxspan=25s id |eval Failure=if(searchmatch("fail"),1,0)| eval Success=if(searchmatch("response"),1,0) | stats count(Failure) as FailureCount, count(Success) as SuccessCount | table FailureCount SuccessCountThat query…See More
May 17
Andrea Judy is now a member of splunkninja
May 16
Perry
  • St. Louis, MO
  • United States Minor Outlying Islands
Share on Facebook Share on Facebook Share Twitter

Perry's Discussions

Regex help
1 Reply

I am trying to pull out the hostname of a virus scan message and create a new field, but I am not having any luck.  This is the part of the log I am trying to run a regex against: virus detected in…Continue

Started this discussion. Last reply by Michael Wilde Oct 3, 2011.

 

Perry's Page

Gifts Received

Gift

Perry has not received any gifts yet

Give Perry a Gift

Latest Activity

Michael Wilde replied to Perry's discussion Regex help
"Perry... think it out... talk it out.. like this..    a backslash, ( followed by any character that is not a backslash ), followed by a backslash.   I put the parens around the phrase above, because we'll use that as a capturing…"
Oct 3, 2011
Perry posted a discussion

Regex help

I am trying to pull out the hostname of a virus scan message and create a new field, but I am not having any luck.  This is the part of the log I am trying to run a regex against: virus detected in \HOST001\SERVER-AV-1\I can't seem to get what is between the first \ and second \ Any help would be appreciated See More
Oct 3, 2011
Perry is now a member of splunkninja
Oct 3, 2011

Profile Information

Are you an existing splunk user?
Licensed
What do you do for your day job?
Security Analyst

Comment Wall

  • No comments yet!

You need to be a member of splunkninja to add comments!

Join splunkninja

 
 
 

© 2012   Created by Michael Wilde.

Badges  |  Report an Issue  |  Terms of Service