<?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 What am I doing wrong with the aggregate macro syntax in my correlation search to create notable events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205750#M59825</link>
    <description>&lt;P&gt;Search I am trying to use: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" (EventCode=4656 Accesses=DELETE) OR EventCode=1102 OR EventCode=4670 OR EventCode=564  |  `get_date(now())` | `aggregate("Endpoint - FIM - Rule".date.Object_Name)` |  eval _time=now() | eval orig_raw=_raw | fields - _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I leave in the macro&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`aggregate("Endpoint - FIM - Rule".date.Object_Name)` 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I receive an error stating &lt;CODE&gt;aggregate(1)&lt;/CODE&gt;, which I haven't been able to find any information on what my syntax issue is.  &lt;/P&gt;

&lt;P&gt;If I take out the aggregate macro, the search will bring back results.&lt;/P&gt;

&lt;P&gt;Two items that i need help with:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; What am I doing wrong with the aggregate macro syntax?&lt;/LI&gt;
&lt;LI&gt; Even though the search brings back results, notable events are not created.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2016 20:04:53 GMT</pubDate>
    <dc:creator>DF10569</dc:creator>
    <dc:date>2016-06-09T20:04:53Z</dc:date>
    <item>
      <title>What am I doing wrong with the aggregate macro syntax in my correlation search to create notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205750#M59825</link>
      <description>&lt;P&gt;Search I am trying to use: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" (EventCode=4656 Accesses=DELETE) OR EventCode=1102 OR EventCode=4670 OR EventCode=564  |  `get_date(now())` | `aggregate("Endpoint - FIM - Rule".date.Object_Name)` |  eval _time=now() | eval orig_raw=_raw | fields - _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I leave in the macro&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`aggregate("Endpoint - FIM - Rule".date.Object_Name)` 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I receive an error stating &lt;CODE&gt;aggregate(1)&lt;/CODE&gt;, which I haven't been able to find any information on what my syntax issue is.  &lt;/P&gt;

&lt;P&gt;If I take out the aggregate macro, the search will bring back results.&lt;/P&gt;

&lt;P&gt;Two items that i need help with:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; What am I doing wrong with the aggregate macro syntax?&lt;/LI&gt;
&lt;LI&gt; Even though the search brings back results, notable events are not created.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 20:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205750#M59825</guid>
      <dc:creator>DF10569</dc:creator>
      <dc:date>2016-06-09T20:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong with the aggregate macro syntax in my correlation search to create notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205751#M59826</link>
      <description>&lt;P&gt;Try changing the double quotes around your fieldname to single quotes.... &lt;CODE&gt;'Endpoint - FIM - Rule'&lt;/CODE&gt; .Or try defining a variable and passing that variable to the macro. &lt;CODE&gt;| eval agg_input='Endpoint - FIM - Rule'.date.Object_Name | aggregate(agg_input)&lt;/CODE&gt; Not sure if either will work, but worth a try.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 23:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205751#M59826</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-09T23:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong with the aggregate macro syntax in my correlation search to create notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205752#M59827</link>
      <description>&lt;P&gt;Thank you for you help, but I tried both options and still received the same error.  &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-am-I-doing-wrong-with-the-aggregate-macro-syntax-in-my/m-p/205752#M59827</guid>
      <dc:creator>DF10569</dc:creator>
      <dc:date>2016-06-22T15:59:09Z</dc:date>
    </item>
  </channel>
</rss>

