<?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: Match or Substring for nested object not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/701261#M237889</link>
    <description>&lt;P&gt;Thanks, Its worked&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 07:12:01 GMT</pubDate>
    <dc:creator>avisatna</dc:creator>
    <dc:date>2024-10-08T07:12:01Z</dc:date>
    <item>
      <title>Match or Substring for nested object not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/677627#M231701</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I am running query -&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;index=* source="/somesource/*" message "403"&lt;BR /&gt;| search level IN (ERROR)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And Response is --&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"instant": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"epochSecond": 1707978481,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"nanoOfSecond": 72000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;},&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"thread": "main",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"level": "ERROR",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"message": "Error while creating user group",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"thrown": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"commonElementCount": 0,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"extendedStackTrace": "403 Forbidden:"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;},&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"endOfBatch": false,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"threadId": 1,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"threadPriority": 5,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"timestamp": "2024-02-15T06:28:01.072+0000"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now, when i ran following query -&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;i&lt;/STRONG&gt;ndex=* source="/somesource/*" message "403"&lt;BR /&gt;| search level IN (ERROR)&lt;BR /&gt;| eval Test=substr(message,1,5)&lt;BR /&gt;| eval Test1=substr(thrown.extendedStackTrace, 1, 3)&lt;BR /&gt;| table Test, Test1&lt;/P&gt;&lt;P&gt;I am getting value for Test. Correct substring occuring (Output is Error).&lt;BR /&gt;But for Test1, its empty string, where as I am expecting 403.&lt;/P&gt;&lt;P&gt;As message is on root, its working, but the&amp;nbsp;extendedStackTrace is under thrown, the thrown.extendedStackTrace is not rending the correct result.&lt;/P&gt;&lt;P&gt;Although, if i do&lt;/P&gt;&lt;P&gt;...| table Test, Test1, thrown.extendedStackTrace&lt;BR /&gt;&lt;BR /&gt;There is a proper value coming in for thrown.extendedStackTrace&lt;/P&gt;&lt;P&gt;What am i missing?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 07:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/677627#M231701</guid>
      <dc:creator>aniketsamudra</dc:creator>
      <dc:date>2024-02-15T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Match or Substring for nested object not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/677633#M231702</link>
      <description>&lt;P&gt;Single quotes around field names with dots in&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Test1=substr('thrown.extendedStackTrace', 1, 3)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Feb 2024 10:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/677633#M231702</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-15T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Match or Substring for nested object not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/677634#M231703</link>
      <description>&lt;P&gt;Excellent, that worked.. Thank You !!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 10:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/677634#M231703</guid>
      <dc:creator>aniketsamudra</dc:creator>
      <dc:date>2024-02-15T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Match or Substring for nested object not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/701261#M237889</link>
      <description>&lt;P&gt;Thanks, Its worked&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 07:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-or-Substring-for-nested-object-not-working/m-p/701261#M237889</guid>
      <dc:creator>avisatna</dc:creator>
      <dc:date>2024-10-08T07:12:01Z</dc:date>
    </item>
  </channel>
</rss>

