<?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: Looping through a Macro using a csv lookup? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26134#M96648</link>
    <description>&lt;P&gt;It would be better to describe your use case in more detail. It's almost never a good idea to try to write your own loops in Splunk, nor it is usually advisable to use the map command.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2012 21:54:34 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-04-12T21:54:34Z</dc:date>
    <item>
      <title>Looping through a Macro using a csv lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26132#M96646</link>
      <description>&lt;P&gt;I have a request from a user who wants to get some stats from the Exchange App around specific users.  Namely they're looking for a count of incoming and outgoing messages.&lt;/P&gt;

&lt;P&gt;There's a macro in the Exchange Application that would do what I need.  Unfortunately, I would have to run it each time for each user they want to report on.&lt;/P&gt;

&lt;P&gt;I was attempting to do something almost like a loop, passing the value from the csv lookup as an argument to the macro.&lt;/P&gt;

&lt;P&gt;Is this possible?&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 19:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26132#M96646</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2012-04-12T19:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a Macro using a csv lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26133#M96647</link>
      <description>&lt;P&gt;&lt;CODE&gt;map&lt;/CODE&gt; (&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Map"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Map&lt;/A&gt;) seems like it should be close to what you want, but I've always had the devil of a time getting it to do anything the way I would expect.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 21:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26133#M96647</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-04-12T21:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through a Macro using a csv lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26134#M96648</link>
      <description>&lt;P&gt;It would be better to describe your use case in more detail. It's almost never a good idea to try to write your own loops in Splunk, nor it is usually advisable to use the map command.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 21:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Looping-through-a-Macro-using-a-csv-lookup/m-p/26134#M96648</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-04-12T21:54:34Z</dc:date>
    </item>
  </channel>
</rss>

