Activity Feed
- Got Karma for Cron Expression in Splunk. 06-05-2020 12:46 AM
- Got Karma for Error in DB2 connectivity with splunk DB2. 06-05-2020 12:46 AM
- Got Karma for Current date time in whiile reading from CSV. 06-05-2020 12:46 AM
- Got Karma for Re: Current date time in whiile reading from CSV. 06-05-2020 12:46 AM
- Posted Re: _time From file Name on Getting Data In. 03-25-2014 01:58 AM
- Posted _time From file Name on Getting Data In. 03-24-2014 11:48 PM
- Posted Deleting Data Source. on Getting Data In. 03-17-2014 07:32 AM
- Tagged Deleting Data Source. on Getting Data In. 03-17-2014 07:32 AM
- Tagged Deleting Data Source. on Getting Data In. 03-17-2014 07:32 AM
- Tagged Deleting Data Source. on Getting Data In. 03-17-2014 07:32 AM
- Posted Re: Displaying calculated value in timechart on Splunk Search. 03-12-2014 02:34 AM
- Posted Re: Displaying calculated value in timechart on Splunk Search. 03-11-2014 05:28 AM
- Posted Re: Displaying calculated value in timechart on Splunk Search. 03-11-2014 02:09 AM
- Posted Displaying calculated value in timechart on Splunk Search. 03-11-2014 12:43 AM
- Tagged Displaying calculated value in timechart on Splunk Search. 03-11-2014 12:43 AM
- Tagged Displaying calculated value in timechart on Splunk Search. 03-11-2014 12:43 AM
- Posted Re: Joining data on Splunk Search. 03-10-2014 10:49 PM
- Posted Joining data on Splunk Search. 03-10-2014 07:03 AM
- Tagged Joining data on Splunk Search. 03-10-2014 07:03 AM
- Tagged Joining data on Splunk Search. 03-10-2014 07:03 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
03-25-2014
01:58 AM
Regular expression I have corrected to ABC_(\d{4})(\d{2})(\d{2}) to get the groups.
Myhost hame is DateFormat and and I have corrected to refereeing as
$SPLUNK_HOME/etc/system/local/datetime.xml.
But still I am getting same result(_time with current time).
... View more
03-24-2014
11:48 PM
Hi
I want splunk to populate _time field with value from file name.
for ex my file name is ABC_20140131 I want _time field with value 01/31/2014.
I looked http://blogs.splunk.com/2009/12/02/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename/
and tried the configerations exaplined .But still I am getting _time as current time.
My changes are as follows.
etc\system\default\props.config
[host::DateFormat]
DATETIME_CONFIG =/etc/system/local/datetime.xml
TIME_PREFIX=ABC_
MAX_TIMESTAMP_LOOKAHEAD=20
TIME_FORMAT = %Y%m%d
datetime.xml
<define name="_isodate" extract="year, month, day">
<text><![CDATA[source::ABC_\d{4}\d{2}\d{2}.*]]></text>
</define>
<datePatterns>
<use name="_isodate"/>
</datePatterns>
Did I miss anything or can somebody give some suggestions on this.
... View more
03-17-2014
07:32 AM
I have created a new data input using files and directories option in splunk web.
I have put 3 excel files.
Later I have found some errors in files and I have deleted the host using host=A |delete command.
Later I try to recreated data source with same excel files.
This time host is not populating and displaying in search.
Any idea why this is happening.
... View more
03-11-2014
02:09 AM
The solution woks fine if we doesn't use by EMPLOYERCODE.
I need the result of sum and visits grouped by EMPLOYERCODE.
... View more
03-11-2014
12:43 AM
My search sting is like:
host=A|rename "ERC" TO EMPLOYERCODE|join EMPLOYERCODE [search host= B|rename EMPLOYER_CODE TO EMPLOYERCODE ]|timechart span=1d sum(Visits) AS Visit, count(USER_NAME) AS User by EMPLOYERCODE| eval avg=Visit/User|table _time,avg.
My purpose is to generate a timechart with avg in y axis.
I am unable to display the avg in timechart. I am getting blank in average when using the above.Can you help me.
... View more
03-10-2014
07:03 AM
Hi All,
This is a repeated question.I am posting it again because I cant find a solution.
I have 2 data sets which contain a common data.(Columns names are different in 2 data set).
Ex:
Data1 Data2
EmpId EId
Name Visit
Age
EmpId and EId are columns I want to join.
In Data1 and Data2 have one to many relations.
Both of this data set will be loaded in splunk on daily basis.So I want to join them and show the result on a day by basis (like timechart does).
Ie I want to join today's Data1 with today's Data2.
I tired below things but both of them doesn't work out.
1)host=Data1 OR Data2| eval employerCode = if(host="Data1","EId", employer_code) |transaction employerCode maxspan=1d
2)host=Data1|join EmpId [search host=Data2 | eval "EId"=EmpId]|eventstats .....
can anybody help me?
... View more
03-05-2014
10:54 PM
Hi All,
I have a configured a folder to read csv files.
My csv files column will be in same format.
Consider I have 2 csv say 1 and 2.These excels are loaded into folder at different dates.
Example.
1.csv (loading date yesterday)
Id Status
1 DEV
2 QA
2.csv (loading date today)
Id Status
1 PROD
2 PROD
Instead of splunk showing all the data I want to show the last status of an Id.
Ie since the status of id's 1 and 2 are changed to PROD i want to show that status only.
Is it possible.
One option i can see is search the column with latest time.
Did we have any configuration we can set at data loading time itself to achieve this.
... View more
03-05-2014
04:55 AM
My SQL will be like this.
select avg(a.field1),count(b.field2)
from HostA a
join HostB b on a.empId=b.ErID
group by a.field,b.field2;
... View more
03-05-2014
01:34 AM
Hi
HostA contains employer_code like (A,B,C,D,E,F,G)
HostB contains ER Code like (A,A,B,D,D)
I am trying to join 2 data sources with below query.
host=HostA|join employer_code [search host=HostB| eval "ER Code"=employer_code]
I am not getting result like inner join in SQL.
Can anybody help.Is there any other way to solve this issue rather than join?
Can we achieve this by sub search?
... View more
02-28-2014
05:25 AM
Ok fine.But In my requirement I doesn't have specific input sting.I need to group column data using transaction.
... View more
02-28-2014
04:21 AM
Hi
If I feel difficult to achieve the search result in a single search,is there any way to do it in multiple steps like plsql procedures?
I mean i have 2 search result from 2 different sources and i want to merge the result is there any way?
i tried to join data but it will not solve my requirements.
... View more
02-26-2014
05:36 AM
My search string is
host=ABC| append [search host=DEF]|stats sum(V) by "ER Code"
Can I have a count function also with search.Count should by calculated based on another field.
Ex:host=ABC| append [search host=DEF]|stats sum(V) by "ER Code"|stats count(I) by "User"
Is it possible to achieve this result.
... View more
02-26-2014
01:12 AM
My search string is
(host=ABC AND "Emp Code"=inputString) OR (host=joinHost AND "EMPLOYER_CODE"=inputString)
Can I have a common varible in place of inputString.
I tried using using eval like below.
eval inupt=inputString|(host=ABC AND "Emp Code"=inputString) OR (host=joinHost AND "EMPLOYER_CODE"=inputString)
But not getting result.
Any help
... View more
02-19-2014
03:45 AM
How can we find the distinct values inside a grouped values.
I use transaction to group data.Now i want to find count(filed2) for each grouped data.
host=A|transaction "field1"|stats count("field2") but not return the appropriate result.
Can anybody help.
... View more
02-19-2014
01:04 AM
02-17-2014
02:36 AM
How can I join and group data from 2 different hosts.
Say I have HostA , HostB and ID as common field in 2 hosts.
I want to join 2 hosts by Id and group them and do further processing on grouped result.
Ex:
In HostA I have id 10 repeating 1 time and in HostB id 10 is repeating 10 times.
I want to know how may times id 10 occurs in HostA and HostB. How can I achieve this.
Like this different Ids are in 2 hosts. For each ID I want to find the value.
... View more
02-11-2014
03:16 AM
How can i add a navigation menu to search options in splunk web 6.
Ie when i click search in home page i can see pivot,report,alerts etc.
I want to add one like that .
... View more
02-07-2014
01:24 AM
I did like that.Please see the values which i have taken from splunk web.
Full path to your data:D:\SplunkInput\Data
Set host :Constant Value
Source type :csv
Set the destination index :default
Number of files :6
App :launcher
... View more
02-07-2014
12:57 AM
1 Karma
Thanks i have added this and solved
... View more
02-07-2014
12:56 AM
I have added a folder to read CSV files through data input >files and directory option.
It seems that when I add a new file it needs splunk instance to restart to take up that file.
Can we configure splunk to read the file automatically when new file is placed into folder.
... View more