How to Find the Missing HOSTS in SPLUNK
How to Find the Missing HOSTS in SPLUNK
Lets say every hosts are sending the data in everyday basis.But for any reason few hosts aren’t sending the data today.So we want to...
How to get Month and Year in Calendar sorted format in SPLUNK
How to get Month and Year in Calendar sorted format in SPLUNK:
By default, splunk sorts field names in lexicographical order, so it becomes quite a typical task to sort fields on...
How to Configure Email Alerting using Gmail SMTP in SPLUNK
How to Configure Email Alerting using Gmail SMTP in SPLUNK
Step1: Configure Email Settings In SPLUNK
Configuring SPLUNK to connect to the gmail servers is very simple.
In Splunk, navigate to: “Settings > Server...
Effective Usage of "STRPTIME" and "STRFTIME"
Effective Usage of "STRPTIME" and "STRFTIME"
Below is the effective usage of the "strptime" and "strftime"
function which are used with eval command in SPLUNK :
1. strptime() :
...
Counting of a Particular Character in a Field
There are many ways to achieve the above scenario:
1. Using "mvcount and split"
index="_internal"
| head 4
| eval Var="www.google.com"
| eval Result=(mvcount(split(Var,"."))-1)...
How to add Serial Number in each line of your event
There are many ways to achieve the above scenario :
1. Using "steamstats"
index="_internal" sourcetype=splunkd
| table log_level, splunk_server
| head 4
| streamstats count |...