Refine your search:

Using the transaction command, I want to group a number of events to obviously make up a transaction but each contains the same field value for example, Field=334334 all events with this field number should be grouped into one trnasaction but with 2 other startswith and endswith events added to it, how can this be done?

asked 15 Mar '12, 20:13

Dark_Ichigo's gravatar image

Dark_Ichigo
4552216
accept rate: 60%

Could you provide a sample of the log? I'd guess from the fact that you are asking that events from these transactions are can overlap each other, i.e;

Start A Event A Start B Event A Event B Event A End A Event B End B

However, the field 334334 is not present in the start/end events, right?

/k

(16 Mar '12, 03:05) kristian.kolb ♦

One Answer:

I think it sounds like you want to transaction a set of events based on startswith and endswith, and also run a separate transaction based on a Field value and then append them like this;

searchquery | transaction startswith=blah endswith=bleh | join Field [searchquery | transaction Field]

I am making a few assumptions as said above, also I am assuming that they might be different datasources as otherwise you may end up with duplicate results (that you could filter with a | dedup)

link

answered 16 Mar '12, 05:35

Drainy's gravatar image

Drainy
8.4k618
accept rate: 25%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×273
×176
×127
×1

Asked: 15 Mar '12, 20:13

Seen: 613 times

Last updated: 16 Mar '12, 05:35

Copyright © 2005-2012 Splunk Inc. All rights reserved.