Getting Data In

Looping through a Macro using a csv lookup?

Brian_Osburn
Builder

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.

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.

I was attempting to do something almost like a loop, passing the value from the csv lookup as an argument to the macro.

Is this possible?

Brian

gkanapathy
Splunk Employee
Splunk Employee

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.

0 Karma

dwaddle
SplunkTrust
SplunkTrust

map (http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Map) 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.

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...