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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...