<?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: Find a specific kind of event before event result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372049#M109459</link>
    <description>&lt;P&gt;If x_uid is uniq, you could use stats to get id value from event with cs_method GET. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:19:30 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-29T19:19:30Z</dc:date>
    <item>
      <title>Find a specific kind of event before event result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372048#M109458</link>
      <description>&lt;P&gt;I'm searching in our IIS logs. I'm looking for a web POST action. The problem is that this POST action happens after one gets to the object page, which is indicated with a URL parameter. So like, example data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                x_uid  cs_method cs_Referer                cs_uri_stem               cs_uri_query
2018-04-10 12:01:00  52634  POST      &lt;A href="http://ref.url/obj/p.htm" target="test_blank"&gt;http://ref.url/obj/p.htm&lt;/A&gt;  &lt;A href="http://ref.url/obj/p.htm" target="test_blank"&gt;http://ref.url/obj/p.htm&lt;/A&gt;
2018-04-10 12:00:30  52634  GET       &lt;A href="http://ref.url/obj" target="test_blank"&gt;http://ref.url/obj&lt;/A&gt;        &lt;A href="http://ref.url/obj/p.htm" target="test_blank"&gt;http://ref.url/obj/p.htm&lt;/A&gt;
2018-04-10 12:00:00  52634  GET       &lt;A href="http://ref.url" target="test_blank"&gt;http://ref.url&lt;/A&gt;            &lt;A href="http://ref.url/obj" target="test_blank"&gt;http://ref.url/obj&lt;/A&gt;        ?id=123
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The criteria I need to find is all times when someone POSTs on that specific page. What I want to &lt;EM&gt;also&lt;/EM&gt; get is what ID was posted against (123, in the above example).&lt;/P&gt;

&lt;P&gt;Is that possible? I'm trying to read up on transactions and maps, but I'm not getting it.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372048#M109458</guid>
      <dc:creator>CMSchelin</dc:creator>
      <dc:date>2018-04-30T21:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific kind of event before event result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372049#M109459</link>
      <description>&lt;P&gt;If x_uid is uniq, you could use stats to get id value from event with cs_method GET. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372049#M109459</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T19:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific kind of event before event result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372050#M109460</link>
      <description>&lt;P&gt;You could try it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=whatever your-search-terms
| transaction 52634 startswith=eval(isnotnull(cs_uri_query)) endswith=eval(like(cs_method, "POST"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might need to fine tune the transaction, find more details here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.0/SearchReference/Transaction#Syntax"&gt;transaction docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 22:26:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372050#M109460</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-04-30T22:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific kind of event before event result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372051#M109461</link>
      <description>&lt;P&gt;Assuming &lt;CODE&gt;x_uid&lt;/CODE&gt; can be used as a SessionID, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Existing Search Here
| eventstats values(cs_uri_query) AS cs_uri_query BY x_uid
| search cs_method="POST"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 May 2018 15:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-a-specific-kind-of-event-before-event-result/m-p/372051#M109461</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-05-01T15:41:28Z</dc:date>
    </item>
  </channel>
</rss>

