<?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: Search to Pull Values from START log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187251#M53954</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;I don't have the status values for start and end log, so please update that accordingly, in line 3.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=contract_gateway sourcetype=esb_audit esb_top_level=1 NOT bp_bp_name="Task" status=fail* bp_bp_name=PO | eval marker=coalesce(bp_context_id, svc_context_id) 
| transaction marker startswith="status=START" endswith="status=ERROR OR status=COMPLETE" 
| eval end_time=_time+duration | eval start_time=_time |convert ctime(start_time) ctime(end_time) 
|eval exit_status=mvindex(status,0) | eval exit_message=mvindex(other,0)
| table marker start_time end_time svc_context_name FromIdentity TPCode PONumber exit_status exit_message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Jun 2014 19:51:44 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-06-03T19:51:44Z</dc:date>
    <item>
      <title>Search to Pull Values from START log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187250#M53953</link>
      <description>&lt;P&gt;I have a search that monitor's failed PO's.&lt;/P&gt;

&lt;P&gt;Essentially the idea is to monitor the overall state of the txn, and whether it fails..so I calc latest(status) as Exit_Status to find the overall status of a transaction.&lt;/P&gt;

&lt;P&gt;What happens when the txn fails, though, is we lose valuable customer information from the START log that our support could really use in determining the root cause.  &lt;/P&gt;

&lt;P&gt;How can I pull the values from the START LOG, but still monitor the overall status of the PO?&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;P&gt;index=contract_gateway sourcetype=esb_audit esb_top_level=1 NOT bp_bp_name="&lt;EM&gt;Task" status=*fail&lt;/EM&gt; bp_bp_name=PO | eval marker=coalesce(bp_context_id, svc_context_id) | stats earliest(_time) as start_time, latest(_time) as end_time, first(svc_context_name) as svc_context_name, first(FromIdentity) as FromIdentity, first(TPCode) as TPCode, first(PONumber) as PONumber, latest(status) as exit_status, first(other) as exit_message by marker | eval duration=end_time-start_time | eval _time=start_time|convert ctime(start_time) ctime(end_time)&lt;/P&gt;

&lt;P&gt;The output of the alert typically has blank fields for the PO Number, TPCode, and FromIdentity.&lt;/P&gt;

&lt;P&gt;I have been playing around with the search, but I haven't been able to pull those values from the start log of the order in to the alert when monitoring the overall status of FAIL.&lt;/P&gt;

&lt;P&gt;Any suggestions would be awesome...thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187250#M53953</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2020-09-28T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search to Pull Values from START log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187251#M53954</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;I don't have the status values for start and end log, so please update that accordingly, in line 3.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=contract_gateway sourcetype=esb_audit esb_top_level=1 NOT bp_bp_name="Task" status=fail* bp_bp_name=PO | eval marker=coalesce(bp_context_id, svc_context_id) 
| transaction marker startswith="status=START" endswith="status=ERROR OR status=COMPLETE" 
| eval end_time=_time+duration | eval start_time=_time |convert ctime(start_time) ctime(end_time) 
|eval exit_status=mvindex(status,0) | eval exit_message=mvindex(other,0)
| table marker start_time end_time svc_context_name FromIdentity TPCode PONumber exit_status exit_message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jun 2014 19:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187251#M53954</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-03T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search to Pull Values from START log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187252#M53955</link>
      <description>&lt;P&gt;Thanks for the response.  I'm not getting any results back after updating the third line...index=contract_gateway sourcetype=esb_audit esb_top_level=1 NOT bp_bp_name="Task" status=fail* bp_bp_name=PO | eval marker=coalesce(bp_context_id, svc_context_id) &lt;BR /&gt;
| transaction marker startswith="status=START" endswith="FAIL*" &lt;BR /&gt;
| eval end_time=_time+duration | eval start_time=_time |convert ctime(start_time) ctime(end_time) &lt;BR /&gt;
| eval exit_status=mvindex(status,0) | eval exit_message=mvindex(other,0)&lt;BR /&gt;
| table marker start_time end_time svc_context_name FromIdentity TPCode PONumber exit_status exit_message&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-to-Pull-Values-from-START-log/m-p/187252#M53955</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2020-09-28T16:47:06Z</dc:date>
    </item>
  </channel>
</rss>

