<?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 in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699843#M10426</link>
    <description>&lt;P&gt;thank you for your reply , can you suggest any method apart from the lookup one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 13:40:22 GMT</pubDate>
    <dc:creator>sverdhan</dc:creator>
    <dc:date>2024-09-23T13:40:22Z</dc:date>
    <item>
      <title>How find amount not ingested?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699818#M10424</link>
      <description>&lt;P&gt;i have used the below query to get a list of 25 sourcetypes who are not reporting for the last 30 days ...but i need to know the volume of data ingested by them...kindly suggest any ideas or any alternative methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| metadata type=sourcetypes | eval diff=now()-lastTime | where diff &amp;gt; 3600*24*30 | convert ctime(lastTime) | convert ctime(firstTime) | convert ctime(recentTime) | sort -diff&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699818#M10424</guid>
      <dc:creator>sverdhan</dc:creator>
      <dc:date>2024-09-23T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699824#M10425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456"&gt;@sverdhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;sorry but your requirement isn't so clear:&lt;/P&gt;&lt;P&gt;if a sourcetype didn't reported in the last 30 days, how can you calculate their volume? it's always 0 in the last 30 days.&lt;/P&gt;&lt;P&gt;Maybe you want the logs in the last 6 months, calculating their total volume highlighting if they aren't sending logs from 30 days.&lt;/P&gt;&lt;P&gt;in this case, you can apply a solution like the one you shared.&lt;/P&gt;&lt;P&gt;Anyway, to calculate volume you have two solution:&lt;/P&gt;&lt;P&gt;a more performant (but less precise) solution that uses a medium value (e.g. 1k) for each event.&lt;/P&gt;&lt;P&gt;the calculation of volume using the search from license consuming:&lt;/P&gt;&lt;P&gt;if the sourcetypes to monitor ar in a lookup called perimeter.csv:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count latest(_time) AS lastTime where index=* [| inputlookup perimeter.csv | fields sourcetype ] earliest=-180d latest=now BY host
| eval period=if lastTime&amp;gt;now()-86400*30,"Latest","Previous")
| stats 
     sum(count) AS count 
     dc(period) As period_count
     values(period) AS period
     BY host
| eval status=case(period_count=2,"Always present",period="Latest","Only last Month",period="Previous","Only Previous")
| eval volume=count*1/1024/1024
| table host status volume&lt;/LI-CODE&gt;&lt;P&gt;if instead you want a more detailed solutions but very less performant, you could try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal [ rest splunk_server=local /services/server/info 
    | return host] source=*license_usage.log* type="Usage" 
 [| tstats count latest(_time) AS lastTime where index=* [| inputlookup perimeter.csv | fields sourcetype ] earliest=-180d latest=now BY host | fields host ]
| eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) 
| eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) 
| eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) 
| bin _time span=1d 
| stats sum(b) as b by _time, pool, s, st, h, idx 
| timechart span=1d sum(b) AS volumeB by h fixedrange=false 
| fields - _timediff 
| foreach "*" 
    [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024, 3)]&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 12:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699824#M10425</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-23T12:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699843#M10426</link>
      <description>&lt;P&gt;thank you for your reply , can you suggest any method apart from the lookup one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699843#M10426</guid>
      <dc:creator>sverdhan</dc:creator>
      <dc:date>2024-09-23T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699847#M10427</link>
      <description>&lt;P&gt;Instead of inputlookup, you could use your metadata search to retrieve the sourcetype names. Obviously, this will only include the sourcetypes for which there have been events, and not for all configured sourcetypes.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699847#M10427</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-23T14:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699859#M10428</link>
      <description>&lt;P&gt;Thank you , Do you have&amp;nbsp; a general query to calculate the volume ingested for any sourcetype in general?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699859#M10428</guid>
      <dc:creator>sverdhan</dc:creator>
      <dc:date>2024-09-23T14:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699861#M10429</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699861#M10429</guid>
      <dc:creator>giuseppe</dc:creator>
      <dc:date>2024-09-23T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699862#M10430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456" target="_blank"&gt;@sverdhan&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you asked for a list of sourcetypes.&lt;/P&gt;&lt;P&gt;If you want all the sourcetypes, you could try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal [ rest splunk_server=local /services/server/info 
    | return host] source=*license_usage.log* type="Usage" 
| eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) 
| eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) 
| eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) 
| bin _time span=1d 
| stats sum(b) as b by _time, pool, s, st, h, idx 
| timechart span=1d sum(b) AS volumeB by h fixedrange=false 
| fields - _timediff 
| foreach "*" 
    [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024, 3)]&lt;/LI-CODE&gt;&lt;P&gt;that's the one that you can find in the license consuming.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699862#M10430</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-23T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: splunk</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699890#M10431</link>
      <description>&lt;PRE&gt;index=_internal source=*license_usage.log type="Usage" &lt;BR /&gt;| eval indexname = if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx)&lt;BR /&gt;| eval sourcetypename = st&lt;BR /&gt;| bin _time span=1d &lt;BR /&gt;| stats sum(b) as b by _time, pool, indexname, sourcetypename&lt;BR /&gt;| eval GB=round(b/1024/1024/1024, 3)&lt;BR /&gt;| fields _time, indexname, sourcetypename, GB&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2024 21:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-find-amount-not-ingested/m-p/699890#M10431</guid>
      <dc:creator>Jawahir</dc:creator>
      <dc:date>2024-09-23T21:18:28Z</dc:date>
    </item>
  </channel>
</rss>

