<?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: Problem in report part? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Problem-in-report-part/m-p/249496#M10751</link>
    <description>&lt;P&gt;You could use a &lt;CODE&gt;match&lt;/CODE&gt; here, but this would be a more 'expensive' search then ...&lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=session_data sourcetype=salejandata | where match(_raw,"$mtcn$")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the value for $mtcn$ is within a specific field, which already gets extracted, you could change the &lt;CODE&gt;_raw&lt;/CODE&gt; for this field name.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2016 09:48:13 GMT</pubDate>
    <dc:creator>DMohn</dc:creator>
    <dc:date>2016-03-16T09:48:13Z</dc:date>
    <item>
      <title>Problem in report part?</title>
      <link>https://community.splunk.com/t5/Reporting/Problem-in-report-part/m-p/249495#M10750</link>
      <description>&lt;P&gt;I'm generating a transaction report with the help of query mentioned below.&lt;/P&gt;

&lt;P&gt;index=session_data  sourcetype=salejandata   "$mtcn$"&lt;BR /&gt;
| eval TXN_status = if(isnotnull(Error),"Error","Success")&lt;BR /&gt;
| table CardNo CardDeatail  TXN_status Success Failure Total_Txn&lt;/P&gt;

&lt;P&gt;i'm passing mtcn as dynamic value from report or dashboard.&lt;BR /&gt;
mtcn values may be 10 or 16 digit number.&lt;/P&gt;

&lt;P&gt;User can only provide 10 digit mtcn number while accessing report or dashboard. &lt;BR /&gt;
But in logs where query is searching for data, there it will be 16 digit value.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;user may provide mtcn number as 2342567895 in text box of Report or Dashboard.&lt;/P&gt;

&lt;P&gt;but in log file that mtcn may be prefixed or suffixed as mentioned below.&lt;/P&gt;

&lt;P&gt;2342567895HD3567&lt;/P&gt;

&lt;P&gt;DER4RR2342567895&lt;/P&gt;

&lt;P&gt;G4523425678956KK&lt;/P&gt;

&lt;P&gt;I thought it must be working. what i did is i prefixed and suffixed mtcn token with * as mentioned &lt;EM&gt;"$mtcn$"&lt;/EM&gt;.&lt;BR /&gt;
But its not working as expected.&lt;BR /&gt;
please guide me how to achieve it.&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;

&lt;P&gt;Shankarananth&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Problem-in-report-part/m-p/249495#M10750</guid>
      <dc:creator>Shan</dc:creator>
      <dc:date>2020-09-29T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in report part?</title>
      <link>https://community.splunk.com/t5/Reporting/Problem-in-report-part/m-p/249496#M10751</link>
      <description>&lt;P&gt;You could use a &lt;CODE&gt;match&lt;/CODE&gt; here, but this would be a more 'expensive' search then ...&lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=session_data sourcetype=salejandata | where match(_raw,"$mtcn$")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the value for $mtcn$ is within a specific field, which already gets extracted, you could change the &lt;CODE&gt;_raw&lt;/CODE&gt; for this field name.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Problem-in-report-part/m-p/249496#M10751</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2016-03-16T09:48:13Z</dc:date>
    </item>
  </channel>
</rss>

