<?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 how to load/save files under $Splunk\etc\users\USER_NAME\APP_NAME in Security</title>
    <link>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15053#M384</link>
    <description>&lt;P&gt;i have extended a Splunk module, and in it i would like to load/save some data. moreover, i want to bind that data to both the user and the app. so, i think "$Splunk\etc\users\USER_NAME\APP_NAME" is a good place for this kind of files.   &lt;/P&gt;

&lt;P&gt;But how to do declare the path? and how to do this?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2010 10:41:34 GMT</pubDate>
    <dc:creator>William</dc:creator>
    <dc:date>2010-06-08T10:41:34Z</dc:date>
    <item>
      <title>how to load/save files under $Splunk\etc\users\USER_NAME\APP_NAME</title>
      <link>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15053#M384</link>
      <description>&lt;P&gt;i have extended a Splunk module, and in it i would like to load/save some data. moreover, i want to bind that data to both the user and the app. so, i think "$Splunk\etc\users\USER_NAME\APP_NAME" is a good place for this kind of files.   &lt;/P&gt;

&lt;P&gt;But how to do declare the path? and how to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2010 10:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15053#M384</guid>
      <dc:creator>William</dc:creator>
      <dc:date>2010-06-08T10:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to load/save files under $Splunk\etc\users\USER_NAME\APP_NAME</title>
      <link>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15054#M385</link>
      <description>&lt;P&gt;You should not modify files directly from your module. It's a better idea to use splunkd's REST API to modify files. Specifically, if you POST to &lt;CODE&gt;&lt;A href="https://server:port/servicesNS/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/admin/conf-&amp;lt;conf-file&amp;gt;" target="test_blank"&gt;https://server:port/servicesNS/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/admin/conf-&amp;lt;conf-file&amp;gt;&lt;/A&gt;;&lt;/CODE&gt;, you'll create entries in &lt;CODE&gt;$SPLUNK_HOME/etc/users/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/local/&amp;lt;conf-file&amp;gt;.conf&lt;/CODE&gt;. You can create a stanza named &lt;CODE&gt;foo&lt;/CODE&gt; with a line &lt;CODE&gt;key=value&lt;/CODE&gt; by POSTing &lt;CODE&gt;name=foo&amp;amp;key=value&lt;/CODE&gt;. You can read this stanza at &lt;CODE&gt;servicesNS/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/admin/conf-&amp;lt;conf-file&amp;gt;/&amp;lt;stanza&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Helpers for reading and writing from these can be found in entities.py which ships with Splunk.&lt;/P&gt;

&lt;P&gt;Note that this method is not officially supported.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2010 05:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15054#M385</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-22T05:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to load/save files under $Splunk\etc\users\USER_NAME\APP_NAME</title>
      <link>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15055#M386</link>
      <description>&lt;P&gt;i've solved this problem by adding some python modules and modifying somewhere in the splunk needed. but its compatibility is bad.&lt;/P&gt;

&lt;P&gt;I haven't tried your method. Maybe for the next time, i have to do things like this. Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2010 14:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/how-to-load-save-files-under-Splunk-etc-users-USER-NAME-APP-NAME/m-p/15055#M386</guid>
      <dc:creator>William</dc:creator>
      <dc:date>2010-09-26T14:19:43Z</dc:date>
    </item>
  </channel>
</rss>

