<?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 Lookup Help in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686420#M12470</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/79189" target="_blank"&gt;@deepakc&lt;/A&gt;&amp;nbsp;&amp;nbsp;- Good Morning.&lt;/P&gt;&lt;P&gt;Thank you, this&amp;nbsp;is really helpful.&lt;/P&gt;&lt;P&gt;You have a great day!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;</description>
    <pubDate>Sat, 04 May 2024 15:54:30 GMT</pubDate>
    <dc:creator>DilipKMondal</dc:creator>
    <dc:date>2024-05-04T15:54:30Z</dc:date>
    <item>
      <title>Search Lookup Help</title>
      <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686391#M12466</link>
      <description>&lt;DIV&gt;I am trying to create a table with&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;# pyUserIdentifier pyStatusMessage Count of occurences&lt;/DIV&gt;&lt;DIV&gt;1 user1234 Couldn't connect to server 1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our logs have the following json pattern. Any help is highly appreciated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please see below sample log.&lt;/DIV&gt;&lt;DIV&gt;JSON log:&lt;BR /&gt;"pyOptions":"{\"HasTelephonyPriv\":\"true\",\"isSnapshotOnly\":\"\",\"pyAutoLogin\":\"\",\"pyClientHandle\":\"HEWR40W8VLO39ZP5OVIBJKMZKEF8YETH5A\",\"pyDeviceState\":\"\",\"pyNumberOfLines\":\"3\",\"pyPegaCTIError\":\"\",\"pyTelephonyMode\":\"1\",\"pyThisPageAsJSON\":\"\",\"pyUserIdentifier\":\"user1234\",\"pyUserName\":\"\",\"pyUserPassword\":\"\",\"pyWorkMode\":\"Busy\",\"queue\":[ \"\"] }"&lt;BR /&gt;,"pyPageExists":"false"&lt;BR /&gt;,"pyPort":"7017"&lt;BR /&gt;,"pyPresenceAgent":"H-GET"&lt;BR /&gt;,"pySelectedLinkName":"CHANNELSERVICES-ADMIN-CTILINK-LOCAL-JTAPI AVAYAPBX1"&lt;BR /&gt;,\"pySSLProtocolVersion\":\"TLSv1.2\",\"pyStatusMessage\":\"Couldn't connect to server\",\"pyStatusValue\":\"Fail\",\"pySwitchType\":\"Avaya EAS CM\",\"pyVendor\":\"Avaya\",\"pyWorkgroupPhoneBook\":\"true\",\"pzInsKey\":\"CHANNELSERVICES-ADMIN-CTILINK-LOCAL-JTAPI AVAYAPBX1\",\"pzLoadTime\":\"May 3, 2024 9:00:35 AM CDT\",\"pzOriginalInstanceKey\":\"CHANNELSERVICES-ADMIN-CTILINK-LOCAL-JTAPI AVAYA-1\",\"pzPageNameBase\":\"D_CTILinkInfo\",\"LogoutReasonCodes\":[ ],\"NotReadyReasonCodes\":[ ],&lt;BR /&gt;,"pyThisDN":"24181"&lt;BR /&gt;,"pyWorkMode":"Busy"&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 May 2024 22:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686391#M12466</guid>
      <dc:creator>DilipKMondal</dc:creator>
      <dc:date>2024-05-03T22:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search Lookup Help</title>
      <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686403#M12467</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267575"&gt;@DilipKMondal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;please try something ike this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| spath
| rename 
     pyOptions.pyUserIdentifier AS pyUserIdentifier
     pyOptions.pyStatusMessage AS pyStatusMessage
| stats 
     count AS "Count of occurences"
     BY pyUserIdentifier pyStatusMessage

| eval counter=1
| accum counter as "#"
| table "#" pyUserIdentifier pyStatusMessage "Count of occurences"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 09:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686403#M12467</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-04T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search Lookup Help</title>
      <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686405#M12468</link>
      <description>&lt;P&gt;Example using makeresults command for the Json data&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval json_data="{\"pyOptions\":{\"HasTelephonyPriv\":\"true\",\"isSnapshotOnly\":\"\",\"pyAutoLogin\":\"\",\"pyClientHandle\":\"HEWR40W8VLO39ZP5OVIBJKMZKEF8YETH5A\",\"pyDeviceState\":\"\",\"pyNumberOfLines\":\"3\",\"pyPegaCTIError\":\"\",\"pyTelephonyMode\":\"1\",\"pyThisPageAsJSON\":\"\",\"pyUserIdentifier\":\"user1234\",\"pyUserName\":\"\",\"pyUserPassword\":\"\",\"pyWorkMode\":\"Busy\",\"queue\":[\"\"]},\"pyPageExists\":\"false\",\"pyPort\":\"7017\",\"pyPresenceAgent\":\"H-GET\",\"pySelectedLinkName\":\"CHANNELSERVICES-ADMIN-CTILINK-LOCAL-JTAPI AVAYAPBX1\",\"pySSLProtocolVersion\":\"TLSv1.2\",\"pyStatusMessage\":\"Couldn't connect to server\",\"pyStatusValue\":\"Fail\",\"pySwitchType\":\"Avaya EAS CM\",\"pyVendor\":\"Avaya\",\"pyWorkgroupPhoneBook\":\"true\",\"pzInsKey\":\"CHANNELSERVICES-ADMIN-CTILINK-LOCAL-JTAPI AVAYAPBX1\",\"pzLoadTime\":\"May 3, 2024 9:00:35 AM CDT\",\"pzOriginalInstanceKey\":\"CHANNELSERVICES-ADMIN-CTILINK-LOCAL-JTAPI AVAYA-1\",\"pzPageNameBase\":\"D_CTILinkInfo\",\"LogoutReasonCodes\":[],\"NotReadyReasonCodes\":[],\"pyThisDN\":\"24181\",\"pyWorkMode\":\"Busy\"}"
| eval pyUserIdentifier=spath(json_data,"pyOptions{}.pyUserIdentifier")
| eval pyStatusMessage=spath(json_data,"pyStatusMessage")
| stats count BY pyUserIdentifier,pyStatusMessage&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;If using the spath command the data must be well-formatted as per standards&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Spath" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are using indexed_extractions=JSON or KV_MODE=JSON in the props.conf file, then you don't need to use the spath command as it auto extract the fields/values for you and you can then use the stats command based on your fields, and this is the preferred option as it auto extract the fields/values for you. If you don't know what this is Speak to your Splunk Admin to onboard the json data correctly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 09:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686405#M12468</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-04T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search Lookup Help</title>
      <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686419#M12469</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; - Good Morning.&lt;/P&gt;&lt;P&gt;Thank you for the wonderful help and guidance. I can now able to proceed with this.&lt;/P&gt;&lt;P&gt;I highly appreciate your help. You have a great day!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dilip K Mondal&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 14:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686419#M12469</guid>
      <dc:creator>DilipKMondal</dc:creator>
      <dc:date>2024-05-04T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search Lookup Help</title>
      <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686420#M12470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/79189" target="_blank"&gt;@deepakc&lt;/A&gt;&amp;nbsp;&amp;nbsp;- Good Morning.&lt;/P&gt;&lt;P&gt;Thank you, this&amp;nbsp;is really helpful.&lt;/P&gt;&lt;P&gt;You have a great day!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 15:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686420#M12470</guid>
      <dc:creator>DilipKMondal</dc:creator>
      <dc:date>2024-05-04T15:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search Lookup Help</title>
      <link>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686435#M12471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267575"&gt;@DilipKMondal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 09:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-Lookup-Help/m-p/686435#M12471</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-05T09:01:24Z</dc:date>
    </item>
  </channel>
</rss>

