<?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: Need assistance creating a file that can be updated with hosts to exclude from a search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-assistance-creating-a-file-that-can-be-updated-with-hosts/m-p/629515#M218686</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253539"&gt;@FPERVIL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can create two csv lookup files like below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;legit_hosts.csv (field name is dst_host)

dst_host
google.com
webex.com
*.zoom.us

legit_ips.csv (field name is dst_ip)

dst_ip
1.2.3.4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And use below query;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=websense* (http_method="POST" OR http_method="PUT" OR http_method="CONNECT") bytes_out&amp;gt;50000000 NOT [| inputlookup legit_hosts.csv ] NOT [|inputlookup legit_ips.csv ]&lt;/LI-CODE&gt;&lt;P&gt;If you need to add/remove legit hostnames or IP addresses you can just update related lookup files.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 14:40:19 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2023-02-03T14:40:19Z</dc:date>
    <item>
      <title>Need assistance creating a file that can be updated with hosts to exclude from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assistance-creating-a-file-that-can-be-updated-with-hosts/m-p/629512#M218685</link>
      <description>&lt;P&gt;I have a query where I'm looking for users who are performing large file transfers (&amp;gt;50MB).&amp;nbsp; This query runs every day and as a result we have hosts that are legit.&amp;nbsp; These hosts names are extracted from the&amp;nbsp;dst_host field of the results from my search.&amp;nbsp; As we compile a list of valid hosts, we can simply add that to the query to be excluded from the search like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=* sourcetype=websense* AND (http_method="POST" OR http_method="PUT" OR http_method="CONNECT") AND bytes_out&amp;gt;50000000 NOT (dst_host IN &lt;FONT color="#FF00FF"&gt;(google.com, webex.com, *.zoom.us) OR dst_ip=1.2.3.4)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I know there's a better way to add the excluded host or IPs in a file that I can query against to exclude but I'm not sure how to do that.&amp;nbsp; I don't want to update the query everyday with hosts that should be excluded but rather a living document that can be updated with hosts or IPs that should excluded.&lt;/P&gt;&lt;P&gt;Can someone send point me in the right direction for this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assistance-creating-a-file-that-can-be-updated-with-hosts/m-p/629512#M218685</guid>
      <dc:creator>FPERVIL</dc:creator>
      <dc:date>2023-02-03T14:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance creating a file that can be updated with hosts to exclude from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-assistance-creating-a-file-that-can-be-updated-with-hosts/m-p/629515#M218686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253539"&gt;@FPERVIL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can create two csv lookup files like below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;legit_hosts.csv (field name is dst_host)

dst_host
google.com
webex.com
*.zoom.us

legit_ips.csv (field name is dst_ip)

dst_ip
1.2.3.4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And use below query;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=websense* (http_method="POST" OR http_method="PUT" OR http_method="CONNECT") bytes_out&amp;gt;50000000 NOT [| inputlookup legit_hosts.csv ] NOT [|inputlookup legit_ips.csv ]&lt;/LI-CODE&gt;&lt;P&gt;If you need to add/remove legit hostnames or IP addresses you can just update related lookup files.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-assistance-creating-a-file-that-can-be-updated-with-hosts/m-p/629515#M218686</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-03T14:40:19Z</dc:date>
    </item>
  </channel>
</rss>

