<?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 get the values in each line in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/get-the-values-in-each-line/m-p/707293#M239241</link>
    <description>&lt;P&gt;Hi i have a below query where I'm calculating the total prod server count in first dataset and in second dataset I'm plottting a timechart for the server count. what i want to display is a line chart with total prod server showing as threshold and line and the below line chart as server count&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=data sourcetype="server"
| rex field=_raw "server=\"(?&amp;lt;EVENT_CODE&amp;gt;[^\"]*)"
| search [ | inputlookup prodata_eventcode.csv | fields EVENT_Code ]
| stats dc(host_name) as server_prod_count
|rename
| append
[
| search index=appdata source=appdata_value
| rex field=value "\|(?&amp;lt;Item&amp;gt;[^\|]+)?\|(?&amp;lt;EVENT_CODE&amp;gt;[^\|]+)|(?&amp;lt;PROD_Count&amp;gt;[^\|]+)?"
| dedup DATE,EVENT_CODE
| timechart span=1d sum(PROD_Count) as SERVER_COUNT]
| table _time,local_PROD_COUNT,snow_prod_count
| rename DYNA_PROD_COUNT as SERVER_COUNT,snow_prod_count as Threshold&lt;/LI-CODE&gt;
&lt;P&gt;Question is how can&amp;nbsp; i get the threshold value in all the rows so that i can plot threshold vs server count in the line graph&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the snapshot&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="secure_0-1734618949170.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33914iC8C7034986A2D82F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="secure_0-1734618949170.png" alt="secure_0-1734618949170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 15:14:43 GMT</pubDate>
    <dc:creator>secure</dc:creator>
    <dc:date>2024-12-19T15:14:43Z</dc:date>
    <item>
      <title>get the values in each line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/get-the-values-in-each-line/m-p/707293#M239241</link>
      <description>&lt;P&gt;Hi i have a below query where I'm calculating the total prod server count in first dataset and in second dataset I'm plottting a timechart for the server count. what i want to display is a line chart with total prod server showing as threshold and line and the below line chart as server count&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=data sourcetype="server"
| rex field=_raw "server=\"(?&amp;lt;EVENT_CODE&amp;gt;[^\"]*)"
| search [ | inputlookup prodata_eventcode.csv | fields EVENT_Code ]
| stats dc(host_name) as server_prod_count
|rename
| append
[
| search index=appdata source=appdata_value
| rex field=value "\|(?&amp;lt;Item&amp;gt;[^\|]+)?\|(?&amp;lt;EVENT_CODE&amp;gt;[^\|]+)|(?&amp;lt;PROD_Count&amp;gt;[^\|]+)?"
| dedup DATE,EVENT_CODE
| timechart span=1d sum(PROD_Count) as SERVER_COUNT]
| table _time,local_PROD_COUNT,snow_prod_count
| rename DYNA_PROD_COUNT as SERVER_COUNT,snow_prod_count as Threshold&lt;/LI-CODE&gt;
&lt;P&gt;Question is how can&amp;nbsp; i get the threshold value in all the rows so that i can plot threshold vs server count in the line graph&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the snapshot&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="secure_0-1734618949170.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33914iC8C7034986A2D82F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="secure_0-1734618949170.png" alt="secure_0-1734618949170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/get-the-values-in-each-line/m-p/707293#M239241</guid>
      <dc:creator>secure</dc:creator>
      <dc:date>2024-12-19T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: get the values in each line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/get-the-values-in-each-line/m-p/707299#M239243</link>
      <description>&lt;P&gt;From where you are, you could simply do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| filldown Threshold&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/get-the-values-in-each-line/m-p/707299#M239243</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-12-19T15:08:25Z</dc:date>
    </item>
  </channel>
</rss>

