All Apps and Add-ons

Couldn't find ns_log sourcetype for Citrix Netscaler app

ozirus
Path Finder

Hi,

I'm trying to install Netscaler app for Splunk. My syslog log data is being pushed to a local file on the same machine with Splunk since there are 2 different NS machines. I want splunk to gather its data from this local file. While I'm defining Data Input from local file, there is no suitable source type for NS (ns_log). How can I solve this? When I try to define ns_log sourcetype by myself, it says there is already a ns_log sourcetype.

Thanks

0 Karma
1 Solution

jconger
Splunk Employee
Splunk Employee

TL;DR - manually set up Splunk to watch your file(s):
1) Go to $SPLUNK_HOME/etc/apps/Splunk_TA_Citrix-NetScaler
2) Create a directory named "local"
3) Create a file named inputs.conf in the local directory
4) The contents of inputs.conf should look like this:

[monitor://path_to_your_log_file]
disabled = false
sourcetype = ns_log
index = netscaler

5) Restart Splunk

Explanation:
When you install the Netscaler app, a folder named Splunk_TA_Citrix-NetScaler will get created in SPLUNK_HOME/etc/apps. There is an inputs.conf file in here that defines a UDP listener on port 8514 that has a sourcetype of ns_log. So, the NetScaler app is expecting you to send data directly from your NetScaler to Splunk instead of to a file. There are corresponding [ns_log] stanzas in props.conf to extract fields - this is the part giving you grief as the setup wizard wants to overwrite these stanzas with your import. By manually creating the input, we can skip all this grief.

View solution in original post

jconger
Splunk Employee
Splunk Employee

TL;DR - manually set up Splunk to watch your file(s):
1) Go to $SPLUNK_HOME/etc/apps/Splunk_TA_Citrix-NetScaler
2) Create a directory named "local"
3) Create a file named inputs.conf in the local directory
4) The contents of inputs.conf should look like this:

[monitor://path_to_your_log_file]
disabled = false
sourcetype = ns_log
index = netscaler

5) Restart Splunk

Explanation:
When you install the Netscaler app, a folder named Splunk_TA_Citrix-NetScaler will get created in SPLUNK_HOME/etc/apps. There is an inputs.conf file in here that defines a UDP listener on port 8514 that has a sourcetype of ns_log. So, the NetScaler app is expecting you to send data directly from your NetScaler to Splunk instead of to a file. There are corresponding [ns_log] stanzas in props.conf to extract fields - this is the part giving you grief as the setup wizard wants to overwrite these stanzas with your import. By manually creating the input, we can skip all this grief.

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...