<?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 multiple literals in the same event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86690#M22099</link>
    <description>&lt;P&gt;My suggestion would be to enter your terms into a file that you then use as a lookup in Splunk. By using a subsearch that reads from this lookup file, you can easily construct a search that will automatically add all terms that you want to look for.&lt;/P&gt;

&lt;P&gt;The lookup file could look something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;literal
"Failure populating the cust_doc_metadata table"
"Failure calling proxy.fillAndCreateDocuments"
"EOutputServiceException"
"No rule found"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The important thing is to have a header in the first row so that Splunk can parse this as a proper lookup file.&lt;/P&gt;

&lt;P&gt;Then, setup your search that uses &lt;CODE&gt;inputlookup&lt;/CODE&gt; in a subsearch. Let's call the lookup you've constructed "literals".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[| inputlookup literals | return $literal]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This subsearch will expand to something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(("Failure populating the cust_doc_metadata table") OR ("Failure calling proxy.fillAndCreateDocuments") OR ("EOutputServiceException") OR ("No rule found") OR ... )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which should do what you want.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2013 22:47:48 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-01-15T22:47:48Z</dc:date>
    <item>
      <title>Search multiple literals in the same event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86686#M22095</link>
      <description>&lt;P&gt;I am searching an index for 22 different literals.  Each one of the events could have 2 or three contained in each event.  How do I set up the search to look through the list of all 22.  I can not set it up as an AND or an OR operator.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 20:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86686#M22095</guid>
      <dc:creator>drussell88</dc:creator>
      <dc:date>2013-01-14T20:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search multiple literals in the same event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86687#M22096</link>
      <description>&lt;P&gt;A clarifying example, please?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86687#M22096</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-14T21:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search multiple literals in the same event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86688#M22097</link>
      <description>&lt;P&gt;Below is a list literals that may be found in a single event.  There could be more than one in the same event.  I can not use an AND or OR operator in the search string.  I need the syntax for the search string if there is more than one of the literals in some of the events&lt;/P&gt;

&lt;P&gt;"Failure populating the cust_doc_metadata table"&lt;BR /&gt;
"Failure calling proxy.fillAndCreateDocuments"&lt;BR /&gt;
"EOutputServiceException"&lt;BR /&gt;
"No rule found"&lt;BR /&gt;
"Failure retrieving the shared document objectId"&lt;BR /&gt;
"Server communication failure"&lt;BR /&gt;
"java.net.SocketException: Connection reset"&lt;BR /&gt;
"DFC_DOCBROKER_REQUEST_FAILED"&lt;BR /&gt;
"DFC_SESSION_TRANSACTION_ACTIVE"&lt;BR /&gt;
"DM_SYSOBJECT_E_CANT_ACCESS_FILE"&lt;BR /&gt;
"DM_FOLDER_E_PATH_EXISTS"&lt;BR /&gt;
"DM_SESSION_E_TRANSACTION_ERROR"&lt;BR /&gt;
"DM_SYSOBJECT_E_LINK_PERMIT2"&lt;BR /&gt;
"DM_SESSION_E_RPC_ERROR"&lt;BR /&gt;
"DM_OBJ_MGR_E_SAVE_FAIL"&lt;BR /&gt;
"Failure converting"&lt;BR /&gt;
"Unparseable date:"&lt;BR /&gt;
"Bad string detected"&lt;BR /&gt;
"Could not connect to SMTP host"&lt;BR /&gt;
"Unknown SMTP host:"&lt;BR /&gt;
"ERROR"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86688#M22097</guid>
      <dc:creator>drussell88</dc:creator>
      <dc:date>2020-09-28T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search multiple literals in the same event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86689#M22098</link>
      <description>&lt;P&gt;I'm sorry, but I think that more information could still be needed. What kind of log do you have? In what way are events structured, if at all? CSV, key/value, XML, unstructured text, etc etc&lt;/P&gt;

&lt;P&gt;Please provide a few real events, but feel free to mask any sensitive information with xxxx.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 22:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86689#M22098</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-15T22:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search multiple literals in the same event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86690#M22099</link>
      <description>&lt;P&gt;My suggestion would be to enter your terms into a file that you then use as a lookup in Splunk. By using a subsearch that reads from this lookup file, you can easily construct a search that will automatically add all terms that you want to look for.&lt;/P&gt;

&lt;P&gt;The lookup file could look something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;literal
"Failure populating the cust_doc_metadata table"
"Failure calling proxy.fillAndCreateDocuments"
"EOutputServiceException"
"No rule found"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The important thing is to have a header in the first row so that Splunk can parse this as a proper lookup file.&lt;/P&gt;

&lt;P&gt;Then, setup your search that uses &lt;CODE&gt;inputlookup&lt;/CODE&gt; in a subsearch. Let's call the lookup you've constructed "literals".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[| inputlookup literals | return $literal]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This subsearch will expand to something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(("Failure populating the cust_doc_metadata table") OR ("Failure calling proxy.fillAndCreateDocuments") OR ("EOutputServiceException") OR ("No rule found") OR ... )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which should do what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 22:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-multiple-literals-in-the-same-event/m-p/86690#M22099</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-15T22:47:48Z</dc:date>
    </item>
  </channel>
</rss>

