<?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: How to filter out events to make a search out of it? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630538#M219061</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252275"&gt;@AL3Z&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;'s solution should work but I think your field name is "labels" not "Labels". Field names are case sensitive. Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull labels value=manage&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Feb 2023 09:11:30 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2023-02-11T09:11:30Z</dc:date>
    <item>
      <title>How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/629516#M218687</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to create a search out of the below event, to raise an alert if the particular system having the label lostinterface or label is&amp;nbsp; not there&amp;nbsp; and in profiles we have 2 values i.e&amp;nbsp; tndsubnet1 and&amp;nbsp; tndsubnet2, how we can make the search to seperate out the systems in tndsubnets 1 and tndsubnets 2 accordingly to make a search&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 12:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/629516#M218687</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-02-05T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter out events to make a search out of it</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/629519#M218688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252275"&gt;@AL3Z&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(Labels) as Labels by profile
| where isnull(Labels) or Lables="lostinterface"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/629519#M218688</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-03T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter out events to make a search out of it</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630415#M219016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@@&lt;/P&gt;&lt;P&gt;How we can fill the empty values of a "labels" field with a&amp;nbsp; string "manage"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&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>Sun, 12 Feb 2023 12:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630415#M219016</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-02-12T12:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter out events to make a search out of it</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630424#M219021</link>
      <description>&lt;P&gt;You can use &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull" target="_blank" rel="noopener"&gt;fillnull&lt;/A&gt;&amp;nbsp;to replace null values, or you can use &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ConditionalFunctions#if.28.26lt.3Bpredicate.26gt.3B.2C.26lt.3Btrue_value.26gt.3B.2C.26lt.3Bfalse_value.26gt.3B.29" target="_blank" rel="noopener"&gt;if()&lt;/A&gt;&amp;nbsp;function to define a value when original value &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/InformationalFunctions#isnull.28X.29" target="_blank" rel="noopener"&gt;isnull&lt;/A&gt;. &amp;nbsp;Using&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;'s solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(Labels) as Labels by profile
| where isnull(Labels) or Labels="lostinterface"
| fillnull Labels value=manage&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(Labels) as Labels by profile
| where isnull(Labels) or Labels="lostinterface"
| eval Labels = if(isnull(Labels), "manage", Labels)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 11:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630424#M219021</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-02-10T11:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter out events to make a search out of it</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630445#M219032</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;its not working .&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630445#M219032</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-02-10T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630538#M219061</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252275"&gt;@AL3Z&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;'s solution should work but I think your field name is "labels" not "Labels". Field names are case sensitive. Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull labels value=manage&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 09:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630538#M219061</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-11T09:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630596#M219079</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&amp;nbsp; Hi,&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I have been receiving alerts with an empty hostname string. In all the events, the hostname is missing. To resolve this, I plan to create a field named "asset_found." If a hostname is found, it will be added to this field. In the absence of a hostname, the mac address will be added, and if that too is unavailable, an empty string will be added.&lt;BR /&gt;could you help with the search.&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630596#M219079</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-02-13T07:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630602#M219081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252275"&gt;@AL3Z&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below eval to create&amp;nbsp;&lt;SPAN&gt;asset_found field.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval asset_found=coalesce(hostname, mac_address,"")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630602#M219081</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-13T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630612#M219085</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is not working&amp;nbsp; ????&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630612#M219085</guid>
      <dc:creator>AL3Z</dc:creator>
      <dc:date>2023-02-13T09:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630618#M219087</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252275"&gt;@AL3Z&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Could you please share sample events?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 10:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630618#M219087</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-13T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out events to make a search out of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630908#M219162</link>
      <description>&lt;P&gt;You have to understand that "Is not working" conveys little information even in the best of cases. &amp;nbsp;The phrase is useless when other parties in the discussion have no insight about your data. &amp;nbsp;Can you illustrate data? &amp;nbsp;Explain data characteristics? &amp;nbsp;What is the code you attempted? &amp;nbsp;What is the result? &amp;nbsp;You are making volunteers shooting in the dark.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 05:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-events-to-make-a-search-out-of-it/m-p/630908#M219162</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-02-15T05:27:20Z</dc:date>
    </item>
  </channel>
</rss>

