<?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 How to squash host and source fields? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609573#M105679</link>
    <description>&lt;P&gt;Dear Splunkers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue with the process of squashing fields. When searching for events with no hosts or source I don't get any results:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;index=&amp;lt;my_index&amp;gt; &lt;BR /&gt;| where isnull(source)&lt;/PRE&gt;
&lt;P&gt;Does Splunk drop events after being&amp;nbsp;squashed? Because&amp;nbsp;logically, there should be events on my index that are missing the field host and source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 13:08:45 GMT</pubDate>
    <dc:creator>Omar</dc:creator>
    <dc:date>2022-08-16T13:08:45Z</dc:date>
    <item>
      <title>How to squash host and source fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609573#M105679</link>
      <description>&lt;P&gt;Dear Splunkers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue with the process of squashing fields. When searching for events with no hosts or source I don't get any results:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;index=&amp;lt;my_index&amp;gt; &lt;BR /&gt;| where isnull(source)&lt;/PRE&gt;
&lt;P&gt;Does Splunk drop events after being&amp;nbsp;squashed? Because&amp;nbsp;logically, there should be events on my index that are missing the field host and source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 13:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609573#M105679</guid>
      <dc:creator>Omar</dc:creator>
      <dc:date>2022-08-16T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Squashing host and source fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609575#M105681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242460"&gt;@Omar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first is very strange that the source field is null because every event must have a value in this field.&lt;/P&gt;&lt;P&gt;Anyway, if you want to search events without values in the source field, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;my_index&amp;gt; NOT source=*&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609575#M105681</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-16T06:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Squashing host and source fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609580#M105682</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, yes, this could happen due to a process of &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Admin/AboutSplunksLicenseUsageReportView#:~:text=Reporting%20Manual.-,Squashing%20fields,-Each%20license%20peer" target="_blank" rel="noopener"&gt;squashing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;when a certain threshold is reached indexers drop (host, source) fields to avoid&amp;nbsp;&lt;SPAN&gt;explosion in memory/processing overhead.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what confuses me is I am unable to find those events, so I'm wondering if Splunk is dropping the entire events or just those fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bellow search shows if you have this issue or not. This only works with large indexes:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;index=_internal source=*license_usage.log* type="Usage" idx="&lt;STRONG&gt;my_index&lt;/STRONG&gt;"&lt;BR /&gt;| eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h)&lt;BR /&gt;| eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s)&lt;BR /&gt;| eval st=if(len(st)=0 OR isnull(st),"(UNKNOWN)",st)&lt;BR /&gt;| fields _time,b,h,st&lt;BR /&gt;| bin _time span=1d&lt;BR /&gt;| stats sum(b) AS volume by h, _time,st&lt;BR /&gt;| stats avg(volume) AS avgVolume max(volume) AS maxVolume by h,st&lt;BR /&gt;| eval avgVolumeGB=round(avgVolume/1024/1024/1024,3)&lt;BR /&gt;| eval maxVolumeGB=round(maxVolume/1024/1024/1024,3)&lt;BR /&gt;| fields h,st, avgVolumeGB, maxVolumeGB&lt;BR /&gt;| rename avgVolumeGB AS "average" maxVolumeGB AS "peak",st AS "sourcetype", h AS "hostname"&lt;BR /&gt;| sort - average&lt;BR /&gt;| head 10&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609580#M105682</guid>
      <dc:creator>Omar</dc:creator>
      <dc:date>2022-08-16T06:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Squashing host and source fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609583#M105684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242460"&gt;@Omar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's the first time I see this behavior, I found that when there's a congestion (for full queues) there's a delay&amp;nbsp; in internal logs indexing but I never found that host an source fields are dropped!&lt;/P&gt;&lt;P&gt;Anyway, I hint to analyze why there's this congestion and found a solution, maybe it's a too slow storage or maybe you need more resources for your servers or there's a queue problem for a wrong configuration.&lt;/P&gt;&lt;P&gt;Anyway, open a ticket to Splunk Support for this.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-squash-host-and-source-fields/m-p/609583#M105684</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-16T06:49:24Z</dc:date>
    </item>
  </channel>
</rss>

