<?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: using the filename as a transaction id in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32891#M6924</link>
    <description>&lt;P&gt;yes you can.&lt;BR /&gt;
&lt;CODE&gt;* | transaction source&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and if you want to extract the session from a part of the source, use a rex extraction to generate the field&lt;BR /&gt;
example mypath/to/my/file/sessionnumber.log&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* | rex field=source "blah/(&amp;lt;?session&amp;gt;\d+)\.log" | transaction session&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2013 14:52:31 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-05-14T14:52:31Z</dc:date>
    <item>
      <title>using the filename as a transaction id</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32890#M6923</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to integrate into splunk a Java application that generates per session logfiles. So I have lots of independente files that have interesting lines like:&lt;/P&gt;

&lt;P&gt;Task    Param   3   2013-05-14 08:00:00   Server   : farm01&lt;/P&gt;

&lt;P&gt;... (useless lines) ...&lt;/P&gt;

&lt;P&gt;Session   Login  3   2013-05-04 08:45:22    Username: testuser, Login Status: Attempt, Session ID: Zgea*censored*, IP Address: 192.168.1.100&lt;/P&gt;

&lt;P&gt;... ( more useless lines) ...&lt;/P&gt;

&lt;P&gt;ObjMgr   InvokeMethod    4    00003682516f22dc:0  2013-04-18 09:05:38   Begin: Service 'Web Engine Properties' invoke method: 'IsFrameless' at 15636ba6&lt;/P&gt;

&lt;P&gt;... ( lots more of invoke method lines ) ...&lt;/P&gt;

&lt;P&gt;How can I relate the invoke messages to the user that is doing the invoking. I do not have any field I can use to make the transaction feature work. However as the application creates a file for each of the sessions I can use the filename/source as a transaction id.&lt;/P&gt;

&lt;P&gt;Is it possible to use the source/filename as the transaction id? Or is there a differente approach?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32890#M6923</guid>
      <dc:creator>krugger</dc:creator>
      <dc:date>2020-09-28T13:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: using the filename as a transaction id</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32891#M6924</link>
      <description>&lt;P&gt;yes you can.&lt;BR /&gt;
&lt;CODE&gt;* | transaction source&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and if you want to extract the session from a part of the source, use a rex extraction to generate the field&lt;BR /&gt;
example mypath/to/my/file/sessionnumber.log&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* | rex field=source "blah/(&amp;lt;?session&amp;gt;\d+)\.log" | transaction session&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 14:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32891#M6924</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-05-14T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: using the filename as a transaction id</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32892#M6925</link>
      <description>&lt;P&gt;The transaction doesn't allow for over 500 lines per transaction and the files have way too many lines. They are between 5Mb and over 100Mb.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 15:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32892#M6925</guid>
      <dc:creator>krugger</dc:creator>
      <dc:date>2013-05-14T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: using the filename as a transaction id</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32893#M6926</link>
      <description>&lt;P&gt;So what you're saying is that the filename can't be used after all either?&lt;/P&gt;

&lt;P&gt;I think you need to formulate first of all what rule could be used for tying events together. After that it's just a matter of translating that to something in Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 19:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32893#M6926</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-14T19:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: using the filename as a transaction id</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32894#M6927</link>
      <description>&lt;P&gt;If you have long events, transaction is not the solution. &lt;BR /&gt;
Can you explicit what is your goal and why you think that you needed a transaction ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 20:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-the-filename-as-a-transaction-id/m-p/32894#M6927</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-05-14T20:20:13Z</dc:date>
    </item>
  </channel>
</rss>

