<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to accelerate using transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444954#M126202</link>
    <description>&lt;P&gt;sample events&lt;BR /&gt;
2018-07-12 21:39:44,979 [WCS-11    ] ice.impl.DbHandlerService$DbWorkerThread  INFO START (some process..)&lt;BR /&gt;
2018-07-12 21:39:44,980 [WCS-11    ] .wms.server.manager.nutzer.NutzerManager TRACE about something 1&lt;BR /&gt;
2018-07-12 21:39:44,981 [WCS-11    ] server.manager.system.SystemRolleManager TRACE about something 2&lt;BR /&gt;
2018-07-12 21:39:44,981 [WCS-11    ] g.wms.server.manager.nutzer.RechtManager TRACE about something 3&lt;BR /&gt;
2018-07-12 21:39:44,983 [WCS-11    ] g.wms.server.manager.nutzer.RechtManager TRACE about something etc&lt;BR /&gt;
2018-07-12 21:40:45,973 [WCS-11    ] ice.impl.DbHandlerService$DbWorkerThread  INFO END (end process..)&lt;/P&gt;

&lt;P&gt;I want found transaction by process (for example, WCS-11), where one or more messages contains some word(s) (for example, 'about something' or  'platzToRepack' )&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 13:41:14 GMT</pubDate>
    <dc:creator>keekkenen</dc:creator>
    <dc:date>2018-07-16T13:41:14Z</dc:date>
    <item>
      <title>How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444950#M126198</link>
      <description>&lt;P&gt;Hi, all&lt;/P&gt;

&lt;P&gt;for example, I want find all transactions contains some word. How to make it more faster ? &lt;BR /&gt;
If I have too much transaction my search work too long.&lt;/P&gt;

&lt;P&gt;For example, my search look like&lt;BR /&gt;
    source="&lt;EM&gt;wms&lt;/EM&gt;" &lt;BR /&gt;
    | transaction process startswith="START" endswith="END"&lt;BR /&gt;
    | search platzToRepack&lt;/P&gt;

&lt;P&gt;where &lt;STRONG&gt;process&lt;/STRONG&gt; some extracted fields (based on regexp)&lt;/P&gt;

&lt;P&gt;Please, recommend me some strategies for faster searching&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 09:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444950#M126198</guid>
      <dc:creator>keekkenen</dc:creator>
      <dc:date>2018-07-16T09:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444951#M126199</link>
      <description>&lt;P&gt;@keekkenen can you add some sample events for process START and process END? Also what is platzToRepack filter? Can it  not be added to base search instead of being present after the transaction command?&lt;/P&gt;

&lt;P&gt;Ideally you can try using stats instead of transaction. There are several examples on Splunk Answers. For example &lt;A href="https://answers.splunk.com/answers/511699/how-to-get-the-number-of-records-of-a-field-and-su.html"&gt;https://answers.splunk.com/answers/511699/how-to-get-the-number-of-records-of-a-field-and-su.html&lt;/A&gt;.&lt;BR /&gt;
However, for your use case please provide more data so that we can provide something more specific.&lt;/P&gt;

&lt;P&gt;Following is Splunk Documentation for choosing between various event correlation commands in Splunk:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444951#M126199</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-16T11:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444952#M126200</link>
      <description>&lt;P&gt;@keekkenen can you add some sample events for process START and process END? Also what is platzToRepack filter? Can it  not be added to base search instead of being present after the transaction command?&lt;/P&gt;

&lt;P&gt;Ideally you can try using stats instead of transaction. There are several examples on Splunk Answers. For example &lt;A href="https://answers.splunk.com/answers/511699/how-to-get-the-number-of-records-of-a-field-and-su.html"&gt;https://answers.splunk.com/answers/511699/how-to-get-the-number-of-records-of-a-field-and-su.html&lt;/A&gt;.&lt;BR /&gt;
However, for your use case please provide more data so that we can provide something more specific.&lt;/P&gt;

&lt;P&gt;Following is Splunk Documentation for choosing between various event correlation commands in Splunk:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:37:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444952#M126200</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-16T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444953#M126201</link>
      <description>&lt;P&gt;Hi keekkenen,&lt;BR /&gt;
the transaction command is a very slow command for its own nature, for this reason it's better to use other solutions, when possible.&lt;BR /&gt;
At first, the events in your transaction are only the ones that contain "START" and "END" or there are more events?&lt;BR /&gt;
if you want to take only the events that contain "START" and "END", you could use stats command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="wms" (START OR END) 
| stats values(my_field1) AS my_field1 values(my_field2) AS my_field2 earliest(_time) AS _time
| search platzToRepack
| table _time my_field1 my_field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead you have a common field, you could run something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="wms" common_field=*
| stats values(my_field1) AS my_field1 values(my_field2) AS my_field2 earliest(_time) AS _time BY common_field
| search platzToRepack
| table _time common_field my_field1 my_field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Otherwise, the only way to improve performances of transaction command is to reduce the time using maxspan option when possible.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:41:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444953#M126201</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-07-16T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444954#M126202</link>
      <description>&lt;P&gt;sample events&lt;BR /&gt;
2018-07-12 21:39:44,979 [WCS-11    ] ice.impl.DbHandlerService$DbWorkerThread  INFO START (some process..)&lt;BR /&gt;
2018-07-12 21:39:44,980 [WCS-11    ] .wms.server.manager.nutzer.NutzerManager TRACE about something 1&lt;BR /&gt;
2018-07-12 21:39:44,981 [WCS-11    ] server.manager.system.SystemRolleManager TRACE about something 2&lt;BR /&gt;
2018-07-12 21:39:44,981 [WCS-11    ] g.wms.server.manager.nutzer.RechtManager TRACE about something 3&lt;BR /&gt;
2018-07-12 21:39:44,983 [WCS-11    ] g.wms.server.manager.nutzer.RechtManager TRACE about something etc&lt;BR /&gt;
2018-07-12 21:40:45,973 [WCS-11    ] ice.impl.DbHandlerService$DbWorkerThread  INFO END (end process..)&lt;/P&gt;

&lt;P&gt;I want found transaction by process (for example, WCS-11), where one or more messages contains some word(s) (for example, 'about something' or  'platzToRepack' )&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444954#M126202</guid>
      <dc:creator>keekkenen</dc:creator>
      <dc:date>2018-07-16T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444955#M126203</link>
      <description>&lt;P&gt;No, events has any content, and I want get a transaction - first event with 'START" word plus all events between it and next event (last event in transaction) with 'END' word (see sample events in post above)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444955#M126203</guid>
      <dc:creator>keekkenen</dc:creator>
      <dc:date>2018-07-16T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to accelerate using transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444956#M126204</link>
      <description>&lt;P&gt;I found few solution for my case, but it work unreal too long..&lt;BR /&gt;
for example, in log file by 1 hour period I have about 4 million events, it contains more 98 thousand transactions (there are really fat transactions - may be about 600 events), and, for example, in it transactions only one transaction what I try found&lt;/P&gt;

&lt;P&gt;for find it transaction need 25 min, for check contains it transaction in events need 4 min, it's really too long&lt;BR /&gt;
I found it transaction in total commander more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-accelerate-using-transaction/m-p/444956#M126204</guid>
      <dc:creator>keekkenen</dc:creator>
      <dc:date>2018-07-17T15:28:30Z</dc:date>
    </item>
  </channel>
</rss>

