<?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: parse value from json event and build graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636296#M220983</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235562"&gt;@alexeysharkov&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case to give you a complete answer, I need to have some sample of your logs (complete events) to extract ields using regex.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 11:02:42 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-03-28T11:02:42Z</dc:date>
    <item>
      <title>How to parse value from json event and build graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636257#M220964</link>
      <description>&lt;P&gt;Hello gays&lt;/P&gt;
&lt;P&gt;I have events like this, in raw text:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Pending&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:0}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;key&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;NOT processed&lt;SPAN&gt;","&lt;/SPAN&gt;value&lt;SPAN&gt;"&lt;/SPAN&gt;:9}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;key&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"error&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;value&lt;SPAN&gt;"&lt;/SPAN&gt;:5}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;And so on&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Every row is event&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I wanna build chart with latest value of "Pending", "NOT processed",&amp;nbsp;:&lt;SPAN&gt;"error&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I cannot understand how to do it&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Please help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636257#M220964</guid>
      <dc:creator>alexeysharkov</dc:creator>
      <dc:date>2023-03-28T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: parse value from json event and build graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636263#M220968</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235562"&gt;@alexeysharkov&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you alread extracted these fields or not?&lt;/P&gt;&lt;P&gt;if yes, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats 
   last(Pending) AS pending
   last("NOT processed") AS "NOT processed"
   last(error) AS error&lt;/LI-CODE&gt;&lt;P&gt;for more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Stats" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Stats&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only one additional information: these seems to be json format logs, but you have them in separated events, maybe you shuld analyze youd data and use a different parsing rule.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 08:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636263#M220968</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-28T08:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: parse value from json event and build graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636293#M220981</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; for your assistance&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#did you alread extracted these fields or not?&lt;/SPAN&gt;&amp;nbsp;#&lt;/P&gt;&lt;P&gt;No&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 10:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636293#M220981</guid>
      <dc:creator>alexeysharkov</dc:creator>
      <dc:date>2023-03-28T10:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: parse value from json event and build graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636296#M220983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235562"&gt;@alexeysharkov&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case to give you a complete answer, I need to have some sample of your logs (complete events) to extract ields using regex.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 11:02:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636296#M220983</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-28T11:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse value from json event and build graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636468#M221037</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;for your advise&lt;/P&gt;&lt;P&gt;I solve problem :&lt;/P&gt;&lt;P&gt;&amp;lt;search&amp;gt; | timechart cont=false latest(value) as Message_Count by key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 04:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636468#M221037</guid>
      <dc:creator>alexeysharkov</dc:creator>
      <dc:date>2023-03-29T04:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse value from json event and build graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636473#M221039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235562"&gt;@alexeysharkov&lt;/a&gt;,&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 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 06:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-value-from-json-event-and-build-graph/m-p/636473#M221039</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-29T06:43:21Z</dc:date>
    </item>
  </channel>
</rss>

