<?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 Automatically create custom saved searches upon login in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43267#M911</link>
    <description>&lt;P&gt;I want to create custom saved searches for users based on their search filter. I think I need to to use scripted login (i.e., pamScripted.py, dumbScripted.py, etc.) to do so. For instance, if ...Scripted.py creates a user's search filter, then create a search for each item in the filter. So a user whose search filter is host=x, host=y, host=z would get saved searches [x]..., [y]..., [z]...&lt;/P&gt;

&lt;P&gt;I've modified dumbScripted.py to insert saved searches into my savedsearches.conf, but this requires restarting splunk to activate the searches. Alternatively, it might be reasonable to have the script launch "splunk add saved-search ..." but I haven't been able to make it work on a per-user basis. Any suggestions?&lt;/P&gt;</description>
    <pubDate>Sat, 12 Feb 2011 13:03:47 GMT</pubDate>
    <dc:creator>pgsery</dc:creator>
    <dc:date>2011-02-12T13:03:47Z</dc:date>
    <item>
      <title>Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43267#M911</link>
      <description>&lt;P&gt;I want to create custom saved searches for users based on their search filter. I think I need to to use scripted login (i.e., pamScripted.py, dumbScripted.py, etc.) to do so. For instance, if ...Scripted.py creates a user's search filter, then create a search for each item in the filter. So a user whose search filter is host=x, host=y, host=z would get saved searches [x]..., [y]..., [z]...&lt;/P&gt;

&lt;P&gt;I've modified dumbScripted.py to insert saved searches into my savedsearches.conf, but this requires restarting splunk to activate the searches. Alternatively, it might be reasonable to have the script launch "splunk add saved-search ..." but I haven't been able to make it work on a per-user basis. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 13:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43267#M911</guid>
      <dc:creator>pgsery</dc:creator>
      <dc:date>2011-02-12T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43268#M912</link>
      <description>&lt;P&gt;I guess I'd be interested in understanding why you'd want separate saved searches for each user, rather than have the filters do the work. The most effective way to do what you narrowly want is to create the search via a REST API call, but I'm not sure that overall this is necessarily the right approach in the first place.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2011 07:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43268#M912</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-13T07:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43269#M913</link>
      <description>&lt;P&gt;I want to provide our user with a simple way to perform their required log reviews. If they all need to look for certain events, they'll end up creating the same saved searches to perform the job and email the results. I'd rather create the common searches automatically and save everyone the manual and repetitious effort.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2011 10:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43269#M913</guid>
      <dc:creator>pgsery</dc:creator>
      <dc:date>2011-02-13T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43270#M914</link>
      <description>&lt;P&gt;i suppose my question is why you'd need to create different ones for each user.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2011 02:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43270#M914</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-15T02:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43271#M915</link>
      <description>&lt;P&gt;We allow user A to see logs from machines 1, 3 &amp;amp; 9, and user B machines 2, 3, &amp;amp; 4. We want user A to monitor errors on 1,3 &amp;amp; 9; likewise B monitors 2,3 &amp;amp; 4.&lt;/P&gt;

&lt;P&gt;We could teach A and B how to perform the search for each machine and instruct them save the search to simplify their job. However, we have hundreds of users and would prefer to automate the process one way or the other. Creating savedsearches at login seems like an obvious way, but perhaps there's another. I'm also looking at adding the above search to our app and linking the specific machines to the search within the app.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2011 07:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43271#M915</guid>
      <dc:creator>pgsery</dc:creator>
      <dc:date>2011-02-15T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43272#M916</link>
      <description>&lt;P&gt;If you already have this logic coded into the search filter, it should be unnecessary to create different saved searches, since the search filter applies to all searches run by that user.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2011 08:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43272#M916</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-15T08:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43273#M917</link>
      <description>&lt;P&gt;Could you give an example?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2011 12:53:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43273#M917</guid>
      <dc:creator>pgsery</dc:creator>
      <dc:date>2011-02-23T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically create custom saved searches upon login</title>
      <link>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43274#M918</link>
      <description>&lt;P&gt;I solved the problem by creating a drop-down menu allowing the user to choose a host (and time-range). The selected host is plugged into a pipeline that feeds an arbitrary filter. &lt;/P&gt;

&lt;P&gt;
    Hosts: 
    myhosts
    | metadata type=hosts
    True
    main
    
      
        host
        host
      
    
    
      myhosts
      
        stringreplace
        
          
            True
            host=
            $target$
          
        
      
      
        $host$ | head 
        
          sourcetype_setting
          
          stringreplace
          
            
              True
              sourcetype=
              $target$
            
          
          
          
            24h
            False
            
              Submit
              
                flashtimeline
              
            
          
        
      
    
   &lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2011 02:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automatically-create-custom-saved-searches-upon-login/m-p/43274#M918</guid>
      <dc:creator>pgsery</dc:creator>
      <dc:date>2011-03-07T02:34:12Z</dc:date>
    </item>
  </channel>
</rss>

