<?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: How do I edit 'allSites' variable in the nexpose_reports.py to select specific sites for data retrieval. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260392#M189650</link>
    <description>&lt;P&gt;Wow, it makes sense looking at it now but I was trying to work within the entire variable.  I appreciate the assist.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2016 18:30:06 GMT</pubDate>
    <dc:creator>windbishn</dc:creator>
    <dc:date>2016-03-24T18:30:06Z</dc:date>
    <item>
      <title>How do I edit 'allSites' variable in the nexpose_reports.py to select specific sites for data retrieval.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260390#M189648</link>
      <description>&lt;P&gt;By default, data on all sites will be collected. If only data on specific sites is required please edit the 'allSites' variable within the 'nexpose_reports.py' file following the instructions included within the collector script.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;nexpose_reports.py&lt;/STRONG&gt;&lt;BR /&gt;
Sites to report on. For specific sites only, set the 'sites' variable to an array e.g. [1, 3, 12] where the numbers are the site IDs on which data will be collected.&lt;/P&gt;

&lt;P&gt;allSites = nexposeClient.site_id_listing()&lt;BR /&gt;
logger.info("Gathering data on sites &amp;lt;" + ', '.join(nexposeClient.site_name_listing()) + "&amp;gt; with IDs &amp;lt;" + (str(allSites).strip('[]') ) + "&amp;gt;")&lt;BR /&gt;
sites_to_query = allSites&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260390#M189648</guid>
      <dc:creator>windbishn</dc:creator>
      <dc:date>2020-09-29T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit 'allSites' variable in the nexpose_reports.py to select specific sites for data retrieval.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260391#M189649</link>
      <description>&lt;P&gt;You modify the nexpose_reports.py file and change the allSites variable from:&lt;/P&gt;

&lt;P&gt;allSites = nexposeClient.site_id_listing()&lt;/P&gt;

&lt;P&gt;To:&lt;/P&gt;

&lt;P&gt;allSites = [1,17,123,99]&lt;/P&gt;

&lt;P&gt;The IDs are those of the corresponding sites within Nexpose and can be found in the site URL e.g. https://&amp;lt;$NEXPOSE_CONSOLE&amp;gt;/site.jsp?siteid=17. You just take however many site IDs you want data to be collected on and add them to the script. The next time the application collects data it will be limited to those specific sites.&lt;/P&gt;

&lt;P&gt;Another way of doing this is modifying the configured Nexpose user that the application uses to login to the Nexpose console and limit the user's access to only the sites you want data retrieved for. This will require no change to the Splunk application and will achieve the same goal.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:10:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260391#M189649</guid>
      <dc:creator>JJCassidy_R7</dc:creator>
      <dc:date>2020-09-29T09:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit 'allSites' variable in the nexpose_reports.py to select specific sites for data retrieval.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260392#M189650</link>
      <description>&lt;P&gt;Wow, it makes sense looking at it now but I was trying to work within the entire variable.  I appreciate the assist.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-allSites-variable-in-the-nexpose-reports-py-to/m-p/260392#M189650</guid>
      <dc:creator>windbishn</dc:creator>
      <dc:date>2016-03-24T18:30:06Z</dc:date>
    </item>
  </channel>
</rss>

