Getting Data In

Need script to send logs to netcool

marees123
Path Finder

I'm using the below query as MuS suggested,

 *swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | table host, AnInterface, UpDown, _time | sort -_time | reverse

Could any one please provide the script, so that splunk will send the below logs to netcool.

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

Thanks....

Tags (2)
0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi marees123,

I don't think this is going to happen....because:

  • One must know how this could be done
  • What netcool is and how it can receive external data
  • 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

Lots to do for you, you can start here by reading the docs about a custom search command http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/Searchscripts

I know this not your expected answer, but it's like this - we all can help, but we will not do your work 😉

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi marees123,

I don't think this is going to happen....because:

  • One must know how this could be done
  • What netcool is and how it can receive external data
  • 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

Lots to do for you, you can start here by reading the docs about a custom search command http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/Searchscripts

I know this not your expected answer, but it's like this - we all can help, but we will not do your work 😉

cheers, MuS

marees123
Path Finder

thanks MuS...yes.. i will read. thanks again.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...