<?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: String search for the empty value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586779#M204380</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240782"&gt;@lamnguyentt1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: do you want to search for the string&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;relatedPersons&lt;/STRONG&gt; or for the string &lt;STRONG&gt;"relatedPersons":[]&lt;/STRONG&gt; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the first your search is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the second, there are some special chars so it's better to use the regex command:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| regex "\"relatedPersons\":\[\]"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 07:42:03 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-02-28T07:42:03Z</dc:date>
    <item>
      <title>How to string search for the empty value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586773#M204379</link>
      <description>&lt;P&gt;Dear professional,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a search like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="hcg_oapi_prod" relatedPersons&lt;/LI-CODE&gt;
&lt;P&gt;And the search value is store in attached image.&lt;/P&gt;
&lt;P&gt;Then, I want to add a filter to search the log that have&amp;nbsp;&lt;SPAN&gt;"relatedPersons":[] only, like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-02-28 13:18:24.253 [c8058db8c5664bd1b3c49b749b607df8/c8058db8c57dcac5] - DEBUG OncePerRequestFilter - obtained request content: {"offerCode":"aaaa","application":{"applicantPerson":{"name":{"firstName":"aaa","middleName":"aaa","lastName":"aaa"},"gender":"MALE","birthDate":"1aaa","addresses":[],"phoneNumbers":[{"phoneType":"PRIMARY_MOBILE","number":"11111","verificationID":"ascve"}],"identificationDocuments":[{"type":"ID_CARD","number":"2222"}]},"additionalDocuments":[{"documentType":"PHOTO_PERSON","documentInfo":[],"photoTakingResult":"TECHNICAL_PROBLEM"},{"documentType":"MEDICAL_INS_CARD","documentInfo":[{"type":"INSURANCE_CARD_NUM"}]},{"documentType":"BANK_STATMENT_3","documentInfo":[{"type":"BANK_ACCOUNT_NUM"}]}],"employmentInfo":{"econimicalStatus":"OTHER","monthlyIncome":{"amount":8000000.0,"currency":"VND"},"monthlyPaymentLoan":{"amount":0.0,"currency":"USD"}},"relatedPersons":[]},"userStatistics":[{"key":"tongdun_appname","value":"HomeCredit_vn_and"},{"key":"tongdun_blackbox","value":"eyu"},{"key":"tongdun_source","value":"dqshand"},{"key":"tracksessionid","value":"0459588f-b583-4cf0-954c-8ecbbcc31a8e_16460289063825295"}]}&lt;/LI-CODE&gt;
&lt;P&gt;Please help me.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lamnguyentt1_1-1646030428270.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18164iD84CD815A3F246E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="lamnguyentt1_1-1646030428270.png" alt="lamnguyentt1_1-1646030428270.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586773#M204379</guid>
      <dc:creator>lamnguyentt1</dc:creator>
      <dc:date>2022-02-28T17:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: String search for the empty value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586779#M204380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240782"&gt;@lamnguyentt1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: do you want to search for the string&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;relatedPersons&lt;/STRONG&gt; or for the string &lt;STRONG&gt;"relatedPersons":[]&lt;/STRONG&gt; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the first your search is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the second, there are some special chars so it's better to use the regex command:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| regex "\"relatedPersons\":\[\]"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586779#M204380</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-28T07:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: String search for the empty value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586785#M204381</link>
      <description>&lt;P&gt;Thank you for your help Mr.&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to search&amp;nbsp;&lt;SPAN&gt;for the string&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"relatedPersons":[]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 08:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-string-search-for-the-empty-value/m-p/586785#M204381</guid>
      <dc:creator>lamnguyentt1</dc:creator>
      <dc:date>2022-02-28T08:06:37Z</dc:date>
    </item>
  </channel>
</rss>

