<?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 Need script to send logs to netcool in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121761#M25231</link>
    <description>&lt;P&gt;I'm using the below query as MuS suggested,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; *swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | table host, AnInterface, UpDown, _time | sort -_time | reverse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could any one please provide the script, so that splunk will send the below logs to netcool. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;data1swt0001    GigabitEthernet1/0/1    down    2015-01-24 23:48:38
data1swt0001    GigabitEthernet1/0/1    down    2015-01-24 23:48:38

data1swt0001    GigabitEthernet1/0/1    up  2015-01-24 23:52:08
data1swt0001    GigabitEthernet1/0/1    up  2015-01-24 23:52:08
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks....&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2015 05:56:21 GMT</pubDate>
    <dc:creator>marees123</dc:creator>
    <dc:date>2015-01-29T05:56:21Z</dc:date>
    <item>
      <title>Need script to send logs to netcool</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121761#M25231</link>
      <description>&lt;P&gt;I'm using the below query as MuS suggested,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; *swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | table host, AnInterface, UpDown, _time | sort -_time | reverse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could any one please provide the script, so that splunk will send the below logs to netcool. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;data1swt0001    GigabitEthernet1/0/1    down    2015-01-24 23:48:38
data1swt0001    GigabitEthernet1/0/1    down    2015-01-24 23:48:38

data1swt0001    GigabitEthernet1/0/1    up  2015-01-24 23:52:08
data1swt0001    GigabitEthernet1/0/1    up  2015-01-24 23:52:08
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks....&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 05:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121761#M25231</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-01-29T05:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to send logs to netcool</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121762#M25232</link>
      <description>&lt;P&gt;Hi marees123,&lt;/P&gt;

&lt;P&gt;I don't think this is going to happen....because:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;One must know how this could be done&lt;/LI&gt;
&lt;LI&gt;What netcool is and how it can receive external data&lt;/LI&gt;
&lt;LI&gt;Create a custom search command that reads in the Splunk search result, process the events and sends it over what ever technique to this netcool&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Lots to do for you, you can start here by reading the docs about a custom search command &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/Searchscripts"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/Searchscripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I know this not your expected answer, but it's like this - we all can help, but we will not do your work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 09:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121762#M25232</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-01-29T09:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to send logs to netcool</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121763#M25233</link>
      <description>&lt;P&gt;thanks MuS...yes.. i will read. thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 09:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-script-to-send-logs-to-netcool/m-p/121763#M25233</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-01-29T09:53:18Z</dc:date>
    </item>
  </channel>
</rss>

