<?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: Problem with a macro in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505603#M141303</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199592"&gt;@fdevera&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you are using the inputlookup as subsearch. Please output the field required from the lookup like here&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[| `get_seclabel(host,"domain_controller","-90d")` | &lt;FONT color="#800000"&gt;fileds value&lt;/FONT&gt; ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and match the field name to the field name in main search. If it is host, rename value to host&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[| `get_seclabel(host,"domain_controller","-90d")` | &lt;FONT color="#99CC00"&gt;fileds value |&amp;nbsp; rename value as host&lt;/FONT&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 20:20:32 GMT</pubDate>
    <dc:creator>anilchaithu</dc:creator>
    <dc:date>2020-06-22T20:20:32Z</dc:date>
    <item>
      <title>Problem with a macro</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505602#M141302</link>
      <description>&lt;P&gt;`get_seclabel(host,"domain_controller","-90d")`&lt;/P&gt;&lt;P&gt;Macro expanded:&lt;/P&gt;&lt;P&gt;| inputlookup sec_label where (label="domain_controller" type="host" last_updated&amp;gt;=1585079881.000000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the input lookup there are the following columns: label, type, and value. The results of this lookup give me everything that is a domain controller.&amp;nbsp; I'm trying to exclude anything that matches in the value column so I'm using this in a search but it's not excluding the list properly:&lt;/P&gt;&lt;P&gt;NOT&lt;BR /&gt;[| `get_seclabel(host,"domain_controller","-90d")`&lt;/P&gt;&lt;P&gt;I still see NADC01 as a returned value in my search even though I'm excluding it here. Any idea what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 20:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505602#M141302</guid>
      <dc:creator>fdevera</dc:creator>
      <dc:date>2020-06-22T20:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a macro</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505603#M141303</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199592"&gt;@fdevera&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you are using the inputlookup as subsearch. Please output the field required from the lookup like here&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[| `get_seclabel(host,"domain_controller","-90d")` | &lt;FONT color="#800000"&gt;fileds value&lt;/FONT&gt; ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and match the field name to the field name in main search. If it is host, rename value to host&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[| `get_seclabel(host,"domain_controller","-90d")` | &lt;FONT color="#99CC00"&gt;fileds value |&amp;nbsp; rename value as host&lt;/FONT&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 20:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505603#M141303</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-06-22T20:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a macro</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505615#M141306</link>
      <description>&lt;P&gt;if this helps an upvote would be appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 21:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-a-macro/m-p/505615#M141306</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-06-22T21:45:41Z</dc:date>
    </item>
  </channel>
</rss>

