<?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: Remove default attribute in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211891#M98812</link>
    <description>&lt;P&gt;I doubt one app can change another app's settings.  Instead of removing the index attribute can you just set it to the same value as in the other app?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2015 17:54:25 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-12-30T17:54:25Z</dc:date>
    <item>
      <title>Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211888#M98809</link>
      <description>&lt;P&gt;I have an environment where I want to use apps like Splunk for Nix, but have the logs go to different indexes.&lt;/P&gt;

&lt;P&gt;Splunk_TA_nix/default/inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
whitelist=(\.log|log$|messages|secure|auth|mesg$|cron$|acpid$|\.out)
blacklist=(lastlog|anaconda\.syslog)
index=os
disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't want the default inputs.conf to have index=os. I want to set the index in another app and be able to upgrade the app without messing with the default inputs.conf of Splunk for Nix each time. For example...&lt;/P&gt;

&lt;P&gt;serverclass.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:TEST1]
whitelist.0 = 1.1.1.1
[serverClass:TEST1:app:TEST1-IndexConfig]

[serverClass:TEST2]
whitelist.0 = 2.2.2.2
[serverClass:TEST2:app:TEST2-IndexConfig]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TEST1-IndexConfig default inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
index=test1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TEST2-IndexConfig default inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
index=test2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am I going to be stuck commenting out all the "index=" in the defaults each time I want to upgrade the app? Or can I specify in the local confs to ignore the default conf attribute and respect the [default] in my other app?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211888#M98809</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2020-09-29T08:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211889#M98810</link>
      <description>&lt;P&gt;Any changes you make to an app's configuration should be done in local for that very reason.  Your settings in local override those shipped with the app in default.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 17:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211889#M98810</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-12-30T17:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211890#M98811</link>
      <description>&lt;P&gt;I agree with this. However, I need to remove the index= attribute, not modify. And use another app to apply the [default] index=. Does that make sense?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 17:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211890#M98811</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2015-12-30T17:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211891#M98812</link>
      <description>&lt;P&gt;I doubt one app can change another app's settings.  Instead of removing the index attribute can you just set it to the same value as in the other app?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 17:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211891#M98812</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-12-30T17:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211892#M98813</link>
      <description>&lt;P&gt;I wish it were that easy. In my case, when a Universal Forwarder checks in to my deployment server, it gets an inputs.conf with it's [default] index=. All data from that client, unless otherwise specified, goes there. &lt;/P&gt;

&lt;P&gt;That way, I can give login's to sysadmins who represent each "div" and they won't have unnecessary access to another division's data.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 18:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211892#M98813</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2015-12-30T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211893#M98814</link>
      <description>&lt;P&gt;I see your problem. Your best bet is to probably create a separate app for each division. Whenever there's an update you will have to unpack the updated tar to all your apps, but you can have a separate local config for each one then. &lt;/P&gt;

&lt;P&gt;Alternatively on the indexer you could rewrite the index with a transforms.conf/props.conf combo based on the host name. Theres a few examples in Splunk answers already. (eg &lt;A href="https://answers.splunk.com/answers/135315/different-index-based-on-hostname.html"&gt;https://answers.splunk.com/answers/135315/different-index-based-on-hostname.html&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Also, you could set search filters for your users to prevent them from accessing data their not supposed to. Have a look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Security/Addandeditroles#Search_filter_format"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Security/Addandeditroles#Search_filter_format&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 18:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211893#M98814</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-30T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211894#M98815</link>
      <description>&lt;P&gt;I considered this route, however, I want to maintain the flexibility of sending data to specific indexes. For example, if I have a nix box that has the Splunk_TA_nix app sending to index=div02 for the sysadmins; I might also want to send other data to index=finance for the finance people.&lt;/P&gt;

&lt;P&gt;I'm getting the feeling that this might be a case of wanting my cake and eating it too lol&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211894#M98815</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2020-09-29T08:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211895#M98816</link>
      <description>&lt;P&gt;You want to send the same data to multiple indexes?&lt;/P&gt;

&lt;P&gt;You know that costs double right?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2015 09:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211895#M98816</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-31T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211896#M98817</link>
      <description>&lt;P&gt;It's not the same data. I want the default index to be set depending on the subnet that is used to check into the deployment server. That index holds the generic logs, like /var/log/secure and syslog, etc. And in one-off cases, like /var/log/finance.log would go to index=finance. &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 15:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211896#M98817</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2016-01-04T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211897#M98818</link>
      <description>&lt;P&gt;I'm a bit confused. This is what I think you're saying.&lt;/P&gt;

&lt;P&gt;You have two servers in different subnets.&lt;BR /&gt;
You want the /var/log/secure to go to a different index based on the subnet the host is in&lt;BR /&gt;
You do not have any way to distinguish their servers except their subnet (ie hostnames do not relate to status)&lt;BR /&gt;
You may have other log files in /var/log on the servers that you wan to send to a different index&lt;/P&gt;

&lt;P&gt;Is that correct?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 15:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211897#M98818</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-04T15:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211898#M98819</link>
      <description>&lt;P&gt;Also have a read of this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 09:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211898#M98819</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-05T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove default attribute</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211899#M98820</link>
      <description>&lt;P&gt;Yes, that is an accurate summary.&lt;/P&gt;

&lt;P&gt;Also, I have looked at Splunk's routing and filtering of data that you linked. It doesn't solve my problem because very often in my environment, sysadmins will install a Splunk Universal Forwarder on their systems but won't allow me access to them for purposes of configuration. So, I can't control hostnames. All I can do is point them to my deployment server. Filtering on sourcetype doesn't work either, because the sourcetypes will be the same.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-default-attribute/m-p/211899#M98820</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2016-01-05T16:20:16Z</dc:date>
    </item>
  </channel>
</rss>

