<?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: Question around Alerts and Automation through Splunk in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466142#M12622</link>
    <description>&lt;P&gt;Hi dnv007,&lt;/P&gt;

&lt;P&gt;the trigger condition you mentioned works this way:&lt;BR /&gt;
If your Splunk query (for which you setup this alert) would find more than "&lt;STRONG&gt;0&lt;/STRONG&gt;" events (or "results") the alert would be generated.&lt;BR /&gt;
If you change "is greater that" to "is less than" and change the value to "&lt;STRONG&gt;1&lt;/STRONG&gt;" then every time an alert is generated if no events for your Splunk query is found - depending on your "Alert type scheduled/real-time" and the chosen time.&lt;BR /&gt;
But you can do a lot with alerts. For example you can set your "trigger alert when" to "custom" there you can check for field values and more.&lt;/P&gt;

&lt;P&gt;For your log generating problem. Use a universal forwarder for windows/linux. You can monitor file paths and therefore logfiles on text basis. If your macro is able to generate a logfile or append something to a "main" logfile (f.e. windows: Applicaton log) you can pull this and send it to splunk. &lt;/P&gt;

&lt;P&gt;BR vess&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 10:03:47 GMT</pubDate>
    <dc:creator>vessev</dc:creator>
    <dc:date>2020-05-28T10:03:47Z</dc:date>
    <item>
      <title>Question around Alerts and Automation through Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466141#M12621</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I have multiple questions around the topic "Alerts" in Splunk. Here is what i am trying to achieve.. I am trying to automate a couple of Macros to run one after the other. For example: &lt;BR /&gt;
1)My first Macro runs to extract data for a period of 6 months from another index(lets call this Complete_Data_index) into my new index( lets call it Data_Teir1)&lt;BR /&gt;
2)My second macro runs on Data_Teir1, by generating additional fields along with the original fields as part of the results and collects it into a new index called Data_Tier2.&lt;BR /&gt;
3)My third macro runs on the index Data_Tier2, where again it generates additional fields along with the original fields and the fields generated by Data_Tier2 as part of the results and collects it into a new index called Data_Tier3.&lt;/P&gt;

&lt;P&gt;The requirement now is to generate logs that record if each macro run was successful,errorneous,partially successful etc. Basically to set up a logger to know what is happening at each stage of the Macro.&lt;/P&gt;

&lt;P&gt;1)One of the questions I also had was with the feature "Trigger Conditions". If for some reason data was not collected onto Data_Tier1 from Complete_Data_index, and my "Trigger Condition" is set to Number of Results greater than 0.(refer screenshot). Will this trigger an alert to me indicating no data was collected? &lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/291885-trigger-condition.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;2)Can all this be achieved just with Splunk or should I use Python to help me set up logging/loggers?&lt;/P&gt;

&lt;P&gt;Please help and suggest!&lt;/P&gt;

&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466141#M12621</guid>
      <dc:creator>dnv007</dc:creator>
      <dc:date>2020-09-30T05:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Question around Alerts and Automation through Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466142#M12622</link>
      <description>&lt;P&gt;Hi dnv007,&lt;/P&gt;

&lt;P&gt;the trigger condition you mentioned works this way:&lt;BR /&gt;
If your Splunk query (for which you setup this alert) would find more than "&lt;STRONG&gt;0&lt;/STRONG&gt;" events (or "results") the alert would be generated.&lt;BR /&gt;
If you change "is greater that" to "is less than" and change the value to "&lt;STRONG&gt;1&lt;/STRONG&gt;" then every time an alert is generated if no events for your Splunk query is found - depending on your "Alert type scheduled/real-time" and the chosen time.&lt;BR /&gt;
But you can do a lot with alerts. For example you can set your "trigger alert when" to "custom" there you can check for field values and more.&lt;/P&gt;

&lt;P&gt;For your log generating problem. Use a universal forwarder for windows/linux. You can monitor file paths and therefore logfiles on text basis. If your macro is able to generate a logfile or append something to a "main" logfile (f.e. windows: Applicaton log) you can pull this and send it to splunk. &lt;/P&gt;

&lt;P&gt;BR vess&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 10:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466142#M12622</guid>
      <dc:creator>vessev</dc:creator>
      <dc:date>2020-05-28T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question around Alerts and Automation through Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466143#M12623</link>
      <description>&lt;P&gt;Thanks @vessev !&lt;/P&gt;

&lt;P&gt;On your suggestion for the logs, I meant more of setting up a debugging log file for the Macros(that i have mentioned above) to understand if the macro din run or ran and gave partial results etc. I want to set up a logger to understand how macros that i have setup has functioned. Can i achieve all this with just Splunk and its features (that i dont know about) ? or Would it be better if i set up a logger file through Python? &lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 11:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Question-around-Alerts-and-Automation-through-Splunk/m-p/466143#M12623</guid>
      <dc:creator>dnv007</dc:creator>
      <dc:date>2020-05-28T11:27:37Z</dc:date>
    </item>
  </channel>
</rss>

