<?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: Is there a way to check if a field value is present in a transaction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241320#M71762</link>
    <description>&lt;P&gt;My issue is I don't necessarily want it to start with this field value. I just want to check that the field value is &lt;EM&gt;somewhere&lt;/EM&gt; in there, not necessarily the beginning or the end.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 22:50:41 GMT</pubDate>
    <dc:creator>jluo_splunk</dc:creator>
    <dc:date>2016-01-21T22:50:41Z</dc:date>
    <item>
      <title>Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241317#M71759</link>
      <description>&lt;P&gt;The transaction command has the options startswith and endswith, but is there a "contains" of some sort that can be used, just to say that somewhere in the transaction there should be some field value?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241317#M71759</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2016-01-21T22:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241318#M71760</link>
      <description>&lt;P&gt;Is this what you are talking about?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;startswith=eval(match(yourfield,"yourvalue"))
endswith=eval(match(yourfield,"yourvalue"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use regex too or even conditionals inside your eval.&lt;BR /&gt;
See &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/transaction"&gt;transaction reference help page&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241318#M71760</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-21T22:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241319#M71761</link>
      <description>&lt;P&gt;I have used a regex in a match statement before like below and it seems to work fine. Maybe try that?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;startswith=eval(match(eventName,".*SkipFwd"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241319#M71761</guid>
      <dc:creator>MattZerfas</dc:creator>
      <dc:date>2016-01-21T22:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241320#M71762</link>
      <description>&lt;P&gt;My issue is I don't necessarily want it to start with this field value. I just want to check that the field value is &lt;EM&gt;somewhere&lt;/EM&gt; in there, not necessarily the beginning or the end.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:50:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241320#M71762</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2016-01-21T22:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241321#M71763</link>
      <description>&lt;P&gt;My issue is I don't necessarily want it to start with this field value. I just want to check that the field value is &lt;EM&gt;somewhere&lt;/EM&gt; in there, not necessarily the beginning or the end.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241321#M71763</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2016-01-21T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241322#M71764</link>
      <description>&lt;P&gt;O then you could just do a &lt;CODE&gt;|search foo=bar&lt;/CODE&gt; or &lt;CODE&gt;|where foo=bar&lt;/CODE&gt;  after your transaction depending on what you are wanting to look for. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 03:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241322#M71764</guid>
      <dc:creator>MattZerfas</dc:creator>
      <dc:date>2016-01-22T03:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to check if a field value is present in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241323#M71765</link>
      <description>&lt;P&gt;That did it - thank you MattZerfas!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 18:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-check-if-a-field-value-is-present-in-a/m-p/241323#M71765</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2016-01-22T18:18:21Z</dc:date>
    </item>
  </channel>
</rss>

