<?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 Help with Reporting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38726#M8820</link>
    <description>&lt;P&gt;Need a little assistance with reporting. I am currently indexing multiple anti-virus reports into SPlunk daily and are receiving these reports from various Regions globally. (i.e. North America, South America, Europe). &lt;/P&gt;

&lt;P&gt;However, I would build 3 seperate reports based on the unique regions.&lt;/P&gt;

&lt;P&gt;Report 1 - North America&lt;BR /&gt;
Report 2 - South America&lt;BR /&gt;
Report 3 - Europe&lt;/P&gt;

&lt;P&gt;Would an EVAL (IF) or CASE statement work here. Here is a subset of the fields that are being indexed: Region Country Location Sub Location &lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2012 14:52:40 GMT</pubDate>
    <dc:creator>efelder0</dc:creator>
    <dc:date>2012-11-19T14:52:40Z</dc:date>
    <item>
      <title>Help with Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38726#M8820</link>
      <description>&lt;P&gt;Need a little assistance with reporting. I am currently indexing multiple anti-virus reports into SPlunk daily and are receiving these reports from various Regions globally. (i.e. North America, South America, Europe). &lt;/P&gt;

&lt;P&gt;However, I would build 3 seperate reports based on the unique regions.&lt;/P&gt;

&lt;P&gt;Report 1 - North America&lt;BR /&gt;
Report 2 - South America&lt;BR /&gt;
Report 3 - Europe&lt;/P&gt;

&lt;P&gt;Would an EVAL (IF) or CASE statement work here. Here is a subset of the fields that are being indexed: Region Country Location Sub Location &lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 14:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38726#M8820</guid>
      <dc:creator>efelder0</dc:creator>
      <dc:date>2012-11-19T14:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38727#M8821</link>
      <description>&lt;P&gt;What's stopping you from filtering by Region=&amp;lt;report region here&amp;gt; in the search?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 14:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38727#M8821</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-19T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38728#M8822</link>
      <description>&lt;P&gt;I suppose I could setup 3 unique searches and include the statement 'search Region = "North America" and change my output.csv statement.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 15:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38728#M8822</guid>
      <dc:creator>efelder0</dc:creator>
      <dc:date>2012-11-19T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38729#M8823</link>
      <description>&lt;P&gt;If you want three unique reports you'll need three unique searches, or a form to fill in a region variable.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 15:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38729#M8823</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-19T15:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38730#M8824</link>
      <description>&lt;P&gt;You could write a macro that does the reporting and then invoke it along with your selection criteria. For example,&lt;BR /&gt;
imagine that your macro is named &lt;CODE&gt;av_summary&lt;/CODE&gt; and contains something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=av* plus other search terms
| cool transformations here
| stats count by virus sublocation location country
| other cool reporting or charting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could invoke the macro like this in the search bar&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;region="Europe" `av_summary`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could even save a search for each region. But since the underlying macro would be shared, you would have only one place to update the actual report. &lt;/P&gt;

&lt;P&gt;It's easy to create a macro, just go to Manager&amp;gt;&amp;gt;Advanced Search&amp;gt;&amp;gt;Macros&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Reporting/m-p/38730#M8824</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-11-19T16:19:04Z</dc:date>
    </item>
  </channel>
</rss>

