<?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 to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342818#M63142</link>
    <description>&lt;P&gt;Yes, you can do that.  The impact is minor.  Once you change the inputs.conf file, new data will be indexed with the new cisco:network:switch sourcetype, but devices will still exist in the index with the old sourcetype.  Any searches for the devices should specify &lt;CODE&gt;index=net (sourcetype=cisco:network:router OR sourcetype=cisco:network:switch) | ...&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 19:16:24 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-09-19T19:16:24Z</dc:date>
    <item>
      <title>How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342813#M63137</link>
      <description>&lt;P&gt;Hi All, Currently I have request from the network team that they wanted to point the site 03r &amp;amp; 04r from index=net sourcetype=cisco:network:router to index=net sourcetype=cisco:network:switch . &lt;/P&gt;

&lt;P&gt;I could see there 35 devices currently pointing to the index=net sourcetype=cisco:network:router  which needs to be pointed to index=net sourcetype=cisco:network:switch. &lt;/P&gt;

&lt;P&gt;device names to be moved to the index=net sourcetype=cisco:network:switch from index=net sourcetype=cisco:network:router&lt;BR /&gt;
xxxxxx03r&lt;BR /&gt;
uxxxxx03r&lt;BR /&gt;
xxxxxx03r&lt;BR /&gt;
uxxxxx03r-vlan200&lt;/P&gt;

&lt;P&gt;uxxxxx04r&lt;BR /&gt;
uxxxxx04r&lt;BR /&gt;
uxxxxx04r&lt;BR /&gt;
cxxxxxx04r&lt;/P&gt;

&lt;P&gt;details inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/.../router.log*]&lt;BR /&gt;
index=net&lt;BR /&gt;
sourcetype=cisco:network:router&lt;BR /&gt;
host_segment=4&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/.../switch.log*]&lt;BR /&gt;
index=net&lt;BR /&gt;
sourcetype=cisco:network:switch&lt;BR /&gt;
host_segment=4&lt;/P&gt;

&lt;P&gt;kindly guide me how to reconfigure network device to point to index=net sourcetype=cisco:network:switch instead of index=net sourcetype=cisco:network:router. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:41:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342813#M63137</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-09-19T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342814#M63138</link>
      <description>&lt;P&gt;Just change the &lt;CODE&gt;sourcetype=cisco:network:router&lt;/CODE&gt; to &lt;CODE&gt;sourcetype=cisco:network:switch&lt;/CODE&gt; in your input stanza 1 for router.log.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342814#M63138</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-19T16:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342815#M63139</link>
      <description>&lt;P&gt;In addition to what somesoni2 said, the already-indexed data cannot be changed.  Until the existing data ages out, you will need to search for BOTH sourcetype=cisco:network:router and sourcetype=cisco:network:switch to find all of the devices.  A macro will make that easy.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342815#M63139</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-09-19T17:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342816#M63140</link>
      <description>&lt;P&gt;Hi Somesoni2 thanks for your effort on this, currently we have  all these devices name xxx01r, xxx02r, xxx03r , xxx04r  , xxxx01psr and xxxx-inside-xsx-failover-vlan201  are pointing to the  below inputs.conf &lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/.../router.log*]&lt;BR /&gt;
index=net&lt;BR /&gt;
sourcetype=cisco:network:router&lt;BR /&gt;
host_segment=4&lt;/P&gt;

&lt;P&gt;But the network team wants to have the device name xxx03r and xxx04r data alone to be pointed to index=net sourcetype=cisco:network:switch.  And there are totally 35 devices with 03r and 04r name. &lt;BR /&gt;
so how to move only these device 03r and 04r to point to  index=net sourcetype=cisco:network:switch. &lt;BR /&gt;
keeping the rest of the devices to point to index=net sourcetype=cisco:network:router. &lt;/P&gt;

&lt;P&gt;Please guide me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342816#M63140</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-09-19T17:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342817#M63141</link>
      <description>&lt;P&gt;Hi richgalloway, but can we create a new inputs stanza and start pointing the future log data from device name 03r and 04r  to this new sourcetype=cisco:network:switch. Will there will be any impact on this. &lt;/P&gt;

&lt;P&gt;As the network team is asking to reconfigure the devices 03r and 04r to point sourcetype=cisco:network:switch instead of  sourcetype=cisco:network:router. &lt;/P&gt;

&lt;P&gt;Kindly guide me on this. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342817#M63141</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-09-19T17:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342818#M63142</link>
      <description>&lt;P&gt;Yes, you can do that.  The impact is minor.  Once you change the inputs.conf file, new data will be indexed with the new cisco:network:switch sourcetype, but devices will still exist in the index with the old sourcetype.  Any searches for the devices should specify &lt;CODE&gt;index=net (sourcetype=cisco:network:router OR sourcetype=cisco:network:switch) | ...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 19:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342818#M63142</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-09-19T19:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342819#M63143</link>
      <description>&lt;P&gt;Try this for inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#Monitoring router.log from all devices except one with  03r or 04r
[monitor:///opt/syslogs/network/.../router.log*]
index=net
sourcetype=cisco:network:router
host_segment=4
blacklist = network\/\w{3}0(3|4)r

#Monitoring router.log from only one with  03r or 04r
[monitor:///opt/syslogs/network/\w*0(3r|4r)*/router.log*]
index=net
sourcetype=cisco:network:switch
host_segment=4

[monitor:///opt/syslogs/network/.../switch.log*]
index=net
sourcetype=cisco:network:switch
host_segment=4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2017 19:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342819#M63143</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-19T19:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342820#M63144</link>
      <description>&lt;P&gt;Hi Somesoni2 thanks for your effort on this,  Can we update the below monitoring stanza to capture only 03r and 04r router.log and map it to sourcetype = cisco:network:switch as you had mentioned in your comment. &lt;/P&gt;

&lt;P&gt;Below is the path from where the splunk is reading the data and this data are collected in centralized syslog server which is also a Heavy Forwarder instance. &lt;/P&gt;

&lt;P&gt;/opt/syslogs/network/axxxx03r/router.log&lt;BR /&gt;
/opt/syslogs/network/bxxx304r/router.log&lt;BR /&gt;
/opt/syslogs/network/csxxxx03r-vlan200/router.log&lt;BR /&gt;
/opt/syslogs/network/atxxx03r.xxxx.com/router.log&lt;BR /&gt;
/opt/syslogs/network/uxxxxx04r/router.log&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/\w*0(3r|4r)&lt;EM&gt;/router.log&lt;/EM&gt;] &lt;BR /&gt;
 index=net&lt;BR /&gt;
 sourcetype=cisco:network:switch&lt;BR /&gt;
 host_segment=4&lt;/P&gt;

&lt;P&gt;\w is used to matches any single character as a word, but not sure about &lt;BR /&gt;
" \w*0(3r|4r)&lt;EM&gt;/router.log&lt;/EM&gt; "  as what it will do, is it possible to throw some light on this, I am not good in regex.&lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342820#M63144</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T15:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342821#M63145</link>
      <description>&lt;P&gt;Hi Somesoni2 thanks for your effort on this,  hey the above stanza which you had mentioned worked and I could see that  device 03r and 04r data are captured under index=net sourcetype=cisco:network:switch and other device 01r and 02r data are captured under index=net sourcetype=cisco:network:router.&lt;/P&gt;

&lt;P&gt;I had done small change in the regex instead of blacklist = network\/\w{3}0(3|4)r&lt;BR /&gt;
I have used * wild card  blacklist = network\/\w*0(3|4)r&lt;/P&gt;

&lt;P&gt;thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342821#M63145</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-09-25T12:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342822#M63146</link>
      <description>&lt;P&gt;Hi somesoni2, how to convert this to answer ? &lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342822#M63146</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-09-26T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the network devices which are pointing from one sourcetype to another sourcetype in the same index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342823#M63147</link>
      <description>&lt;P&gt;Here you go.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 03:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-the-network-devices-which-are-pointing-from-one/m-p/342823#M63147</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-27T03:52:40Z</dc:date>
    </item>
  </channel>
</rss>

