<?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: Splunk Query when attribute having dot seperator in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688498#M234724</link>
    <description>&lt;P&gt;Try using the json_extract_exact function (which doesn't use paths and therefore avoids the issue of keys looking like paths.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath context
| eval cookiesSize=json_extract_exact(context, "env.cookiesSize")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 23 May 2024 17:05:24 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-05-23T17:05:24Z</dc:date>
    <item>
      <title>Splunk Query when attribute having dot seperator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688476#M234716</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rahulmittal2391_0-1716474280043.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30941iD0E16EF9917BAE06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rahulmittal2391_0-1716474280043.png" alt="rahulmittal2391_0-1716474280043.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;not able to search with any attribute which are having .(dot) like env.cookieSize&lt;/P&gt;
&lt;P&gt;NOT WORKING&lt;/P&gt;
&lt;P&gt;------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="ss-prd-dkp" "*price?sailingId=IC20240810&amp;amp;currencyIso=USD&amp;amp;categoryId=pt_internet" | spath status | search status=500 | spath "context.duration" | search "context.duration"="428.70000000006985"| spath "context.env.cookiesSize" | search "context.env.cookiesSize"=7670&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WORKING&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="ss-prd-dkp" "*price?sailingId=IC20240810&amp;amp;currencyIso=USD&amp;amp;categoryId=pt_internet" | spath status | search status=500 | spath "context.duration" | search "context.duration"="428.70000000006985"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know the solution for this&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;context: { [-]
     duration: 428.70000000006985
     env.automation-bot: false
     env.cookiesSize: 7670
     env.laneColor: blue

}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 May 2024 14:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688476#M234716</guid>
      <dc:creator>rahulmittal2391</dc:creator>
      <dc:date>2024-05-23T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query when attribute having dot seperator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688498#M234724</link>
      <description>&lt;P&gt;Try using the json_extract_exact function (which doesn't use paths and therefore avoids the issue of keys looking like paths.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath context
| eval cookiesSize=json_extract_exact(context, "env.cookiesSize")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 May 2024 17:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688498#M234724</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-23T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query when attribute having dot seperator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688608#M234755</link>
      <description>&lt;P&gt;how we can filter it with providing the value 7670&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 13:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688608#M234755</guid>
      <dc:creator>rahulmittal2391</dc:creator>
      <dc:date>2024-05-24T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query when attribute having dot seperator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688636#M234762</link>
      <description>&lt;P&gt;Use single quote to protect field names when there is some undesirable side effects from flattened JSON path. (search command cannot finesse this, unfortunately.)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="ss-prd-dkp" "*price?sailingId=IC20240810&amp;amp;currencyIso=USD&amp;amp;categoryId=pt_internet"
| where status=500 AND 'context.duration' == 428.70000000006985
 AND 'context.env.cookiesSize' == 7670&lt;/LI-CODE&gt;&lt;P&gt;But note:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Please use raw text format when sharing structured data.&lt;/LI&gt;&lt;LI&gt;Those spath commands are not necessary.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 24 May 2024 17:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-when-attribute-having-dot-seperator/m-p/688636#M234762</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-05-24T17:59:42Z</dc:date>
    </item>
  </channel>
</rss>

