Activity Feed
- Got Karma for Receiving error: Could not load lookup=LOOKUP-splunk_security_essentials. 06-12-2023 01:58 AM
- Got Karma for Receiving error: Could not load lookup=LOOKUP-splunk_security_essentials. 12-02-2022 02:18 AM
- Posted How to write field name in its value on Splunk Search. 01-05-2022 07:26 AM
- Posted How to reorganize a table on Splunk Search. 01-05-2022 05:31 AM
- Posted Re: Foreach command with eval if on Splunk Search. 01-04-2022 07:05 AM
- Posted Foreach command with eval if on Splunk Search. 01-03-2022 08:18 AM
- Posted Re: How to drilldown an external link with part of url in a row on Splunk Search. 12-20-2021 07:32 AM
- Posted Re: How to drilldown an external link with part of url in a row on Splunk Search. 12-20-2021 05:54 AM
- Posted Re: How to drilldown an external link with part of url in a row on Splunk Search. 12-20-2021 05:23 AM
- Posted How to drilldown an external link with part of url in a row on Splunk Search. 12-20-2021 04:59 AM
- Posted How to merge 2 lines in a table into one on Splunk Search. 12-20-2021 04:44 AM
- Posted How to find several terms in all _raw ? on Splunk Search. 12-19-2021 11:31 AM
- Got Karma for Receiving error: Could not load lookup=LOOKUP-splunk_security_essentials. 11-14-2021 11:12 PM
- Posted Re: How to break a json log into multiple events on Getting Data In. 10-07-2021 12:59 AM
- Posted Re: How to break a json log into multiple events on Getting Data In. 10-07-2021 12:21 AM
- Posted How to break a json log into multiple events on Getting Data In. 10-06-2021 08:10 AM
- Posted Re: How to apply icon in foreach command on Dashboards & Visualizations. 09-20-2021 09:43 AM
- Posted Re: How to apply icon in foreach command on Dashboards & Visualizations. 09-20-2021 09:34 AM
- Posted Re: How to convert epoch time field when using it as value in chart command on Dashboards & Visualizations. 09-20-2021 09:21 AM
- Karma Re: How to convert epoch time field when using it as value in chart command for ashvinpandey. 09-20-2021 09:21 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
05-04-2021
05:29 AM
Hi @ITWhisperer I edited my post because it does not suit with my whole table. Please look at my first post I have just edited. Thanks a lot!
... View more
05-04-2021
04:49 AM
Hi, I have a table like that : test total productA_xxxx productA_zzzz productB_xxxx productB_zzzz 1 22 0.23 0.36 0.44 0.55 What I want is a table like that : test total object xxxx zzzz 1 22 productA 0.23 0.36 1 22 productB 0.44 0.55 How can I extract "product" from the name of the field ? Can you help me please ? Thank you !
... View more
Labels
- Labels:
-
eval
04-16-2021
10:02 AM
OK @gcusello I understand what happened : when I save the code, the text "form.text2" appears in the input field : I removed the text and pressed enter and now the input text2 is cleared and results appeared. The drilldown works perfectly. In my final dashboard, I removed the input text1, to see how it's behave, and one input do the job. Thanks for your patience ! I will vote for the post with the right code.
... View more
04-16-2021
09:42 AM
@gcusello really ? so I really don't understand what happen by my side...
... View more
04-16-2021
08:55 AM
Yes sorry I added it and nothing change. What I found out is it seems to work only with _internal index, I tried with another index like : index=main * form.text2 and no result again. And it works with _internal index because the string "form.text2" appears in _internal logs due to my multiple searches ! Try to your side with another index you will see and tell me if you have same issue please.
... View more
04-16-2021
08:44 AM
@gcusello I had the same idea : trying without the base search. I copy/paste your code and only change the query : <form>
<label>clone</label>
<fieldset submitButton="false">
<input type="text" token="text1">
<label>Text 1</label>
<default>*</default>
</input>
<input type="text" token="text2">
<label>Text2</label>
<default>form.text2</default>
</input>
</fieldset>
<row>
<panel>
<table>
<search>
<query>
index=test sourcetype=test_st $text1$ $text2$
| stats first(env) as env earliest(_time) as startsAt first(TxName) as TxName count(Id) as logCount by Id | eval startsAt=strftime(startsAt, "%d-%m-%Y %H:%M:%S.%3Q") | sort -startsAt
</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">100</option>
<option name="dataOverlayMode">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
<option name="drilldown">cell</option>
<drilldown>
<set token="form.text2">$click.value2$</set>
</drilldown>
</table>
</panel>
</row>
</form> It did not work as well. When I open the query, I have this query : index=test sourcetype=test_st * form.text2 | stats first(env) as env earliest(_time) as startsAt first(TxName) as TxName count(Id) as logCount by Id | eval startsAt=strftime(startsAt, "%d-%m-%Y %H:%M:%S.%3Q") | sort -startsAt => 0 event When I remove "form.text2" from the query, results appear. I tried with another index like : index=main * form.text2 and no result again
... View more
04-16-2021
08:27 AM
I tried this : index=test sourcetype=test_st $text1$ $text2$
| fields env _time TxName Id and this : index=test sourcetype=test_st $text1$ $text2$
| fields * no one work...
... View more
04-16-2021
08:13 AM
I tried to remove the refresh setting but nothing change : <form>
<label>Clone</label>
<search id="baseSearch">
<!-- The base search-->
<query>index=test sourcetype=test_st $text1$ $text2$</query>
<earliest>$global-time-picker.earliest$</earliest>
<latest>$global-time-picker.latest$</latest>
</search>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="global-time-picker" searchWhenChanged="true">
<label>Global Time Picker</label>
<default>
<earliest>-30m</earliest>
<latest>now</latest>
</default>
</input>
<input type="text" token="text1">
<label>Text 1</label>
<default>*</default>
</input>
<input type="text" token="text2">
<label>Text2</label>
<default>$form.text2$</default>
<initialValue>*</initialValue>
</input>
</fieldset>
<row>
<panel id="table">
<title>log</title>
<table>
<search base="baseSearch">
<query>| stats first(env) as env earliest(_time) as startsAt first(TxName) as TxName count(Id) as logCount by Id | eval startsAt=strftime(startsAt, "%d-%m-%Y %H:%M:%S.%3Q") | sort -startsAt </query>
</search>
<option name="refresh.display">progressbar</option>
<drilldown>
<set token="form.text2">$click.value2$</set>
</drilldown>
</table>
</panel>
</row>
</form> I remove it also from your code example and it works (actually it works since the beginning) More strange, I get result with the query : index=_internal * form.text2 But nothing with my query : index=test sourcetype=test_st * form.text2 I really don't understand.
... View more
04-16-2021
07:50 AM
Hi @gcusello Still same error : here is my code : <form>
<label>Clone</label>
<search id="baseSearch">
<!-- The base search-->
<query>index=test sourcetype=test_st $text1$ $text2$</query>
<earliest>$global-time-picker.earliest$</earliest>
<latest>$global-time-picker.latest$</latest>
<refresh>5m</refresh>
<refreshType>delay</refreshType>
</search>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="global-time-picker" searchWhenChanged="true">
<label>Global Time Picker</label>
<default>
<earliest>-30m</earliest>
<latest>now</latest>
</default>
</input>
<input type="text" token="text1">
<label>Text 1</label>
<default>*</default>
</input>
<input type="text" token="text2">
<label>Text2</label>
<default>$form.text2$</default>
<initialValue>*</initialValue>
</input>
</fieldset>
<row>
<panel id="table">
<title>log</title>
<table>
<search base="baseSearch">
<query>| stats first(env) as env earliest(_time) as startsAt first(TxName) as TxName count(Id) as logCount by Id | eval startsAt=strftime(startsAt, "%d-%m-%Y %H:%M:%S.%3Q") | sort -startsAt </query>
</search>
<option name="refresh.display">progressbar</option>
<drilldown>
<set token="form.text2">$click.value2$</set>
</drilldown>
</table>
</panel>
</row>
</form>
... View more
04-16-2021
07:15 AM
Hi @anilchaithu Yes the panel in built on a base search (you can see the code in my reply to to @gcusello). I tried the token but no success because the base search is waiting for a value that I have not selected yet. (see the picture in my other reply).
... View more
04-16-2021
07:10 AM
Hi @gcusello, I tried your settings but all searches send "no result found" : here is the source code : <form theme="light"> <label>Clone</label> <search id="baseSearch"> <!-- The base search--> <query>index=test sourcetype=test_st $text1$ $text2$</query> <earliest>$global-time-picker.earliest$</earliest> <latest>$global-time-picker.latest$</latest> <refresh>5m</refresh> <refreshType>delay</refreshType> </search> <fieldset submitButton="false" autoRun="true"> <input type="time" token="global-time-picker" searchWhenChanged="true"> <label>Global Time Picker</label> <default> <earliest>-30m</earliest> <latest>now</latest> </default> </input> <input type="text" token="text1" searchWhenChanged="true"> <label>Raw Document Text Search</label> <default>*</default> </input> <input type="text" token="text2"> <label>Text2</label> <default>form.text2</default> </input> </fieldset> <row> <panel id="table"> <title>log</title> <table> <search base="baseSearch"> <query>| stats first(env) as env earliest(_time) as startsAt first(TxName) as TxName count(Id) as Count by Id | eval startsAt=strftime(startsAt, "%d-%m-%Y %H:%M:%S.%3Q") | sort -startsAt </query> </search> <option name="refresh.display">progressbar</option> <drilldown> <set token="form.text2">$click.value2$</set> </drilldown> </table> </panel> </row> and when I open the search I got this : index=test sourcetype=test_st * form.text2 | stats first(env) as env earliest(_time) as startsAt first(TxName) as TxName count(Id) as Count by Id | eval startsAt=strftime(startsAt, "%d-%m-%Y %H:%M:%S.%3Q") | sort -startsAt What I did wrong ?
... View more
04-16-2021
06:20 AM
Hi, I have a dashboard like that : All panels are based on a basesearch begins like that : index=test sourcetype=st_test $text$ The token "text" is associated to the text input (it is what I want to improve). Here is the basic input : <input type="text" token="text" searchWhenChanged="true"> <label>Raw Document Text Search</label> <default>*</default> </input> The wish is I want to be able to click on any cell of the panel containing a table and that the whole dashboard is filtered according to this value. Today I have to copy a Id value (for example, it could be values of other columns) and paste it in the text box input. I want to mechanize this process. Do you think it is possible ? If yes how can I do that ? Thanks for your help !
... View more
Labels
- Labels:
-
drilldown
04-14-2021
06:53 AM
3 Karma
Hi,
I wanted to update splunk_security_essentials app (3.2.2 to 3.3.2) : after I did the restart, I have this error under all searches :
"Could not load lookup=LOOKUP-splunk_security_essentials"
I found out that there is an automatic lookup set like that :
I did a btool command and see this :
opt/splunk/bin/splunk btool props list --debug |grep LOOKUP-splunk_security_essentials
/opt/splunk/etc/apps/Splunk_Security_Essentials/default/props.conf LOOKUP-splunk_security_essentials = sse_content_exported_lookup search_title AS search_name OUTPUTNEW
What can I do to remove this error ?
Thanks for your help!
... View more
Labels
- Labels:
-
lookup
03-31-2021
12:33 AM
Hi @bowesmana Without filtering on a particular id here is the result of my search : index="A" sourcetype="B" source="*C" | dedup id | spath output=instances path=instances{}.id | eval instances_count=mvcount(instances) | where isnull(instances_count) | fields account_id region name id vpc_id insight | eval account_sg=account_id."___".id | spath output=group_id path=rules{}.grants{}.group_id | table id group_id I tried a query like that : index="A" sourcetype="B" source="C" | dedup id | spath output=instances path=instances{}.id | eval instances_count=mvcount(instances) | where isnull(instances_count) | fields account_id region name id vpc_id insight | eval account_sg=account_id."___".id | table id | rename id as group_id | join type=inner group_id [search index="A" sourcetype="B" source="C" | dedup id| spath output=instances path=instances{}.id| eval instances_count=mvcount(instances)| where isnull(instances_count)| fields account_id region name id vpc_id | spath output=group_id path=rules{}.grants{}.group_id | mvexpand group_id | table group_id ] | rename group_id as id What do you think ?
... View more
03-25-2021
07:56 AM
Hi again @bowesmana I find the issue why the search did not work : with the filter sg-xxxdd5 in the first command line we can see in raw events that it returns "group_id" fields with "null" value (it was not the case days before as we can see in my previous post) : So your stats command does not work in this case ... Without filter, your command return result like that : Probably because of stats value... All of them are identified with 0 value in "exists" column, whereas we should have both values : I tested the request by filtering on several sg-xxx of the list and after checking, some of them return only one event (the one with the id field) and not 2 including one with a group_id field, so they should appear with value as "0" in "exists" column, and other sg-xxx are like in my first post (with 2 events, one with id, other with the value id in group_id) and should appear with "1" as value of "exists" column. How can I deal with that ? Thanks again for your help.
... View more
03-25-2021
07:08 AM
Hi @bowesmana Thanks again for your answer. However, I tried to applied the 2 last commands in my query and it does not react as your test : The purpose of the search is to check if the value in field "id" is present in the field "group_id" and then extract the value of those "id". To give you an example, I have filtered on a sg-xxx which returns 2 events: an event in which it appears in the value of the id field, and another event in which it appears in the group_id field. When the sg-xxx value of the id field appears in a group_id field then I want to extract it. But some ids returns only ONE event (the one with id field). Is this will cause an issue when I will run your command ? Your query is completely what I was looking for and looks pretty good but I don't know if I apply it well because the "check_ids" fields returns nothing. Can you help me again please ? Thanks a lot !
... View more
03-23-2021
02:31 AM
Hi @bowesmana, Thanks for your answer. You were right your search did not work. Here is my query : index="A" sourcetype="B" sg-19c | dedup id | spath output=instances path=instances{}.id | eval instances_count=mvcount(instances) | where isnull(instances_count) | fields account_id region name id vpc_id insight | eval account_sg=account_id."___".id | spath output=group_id path=rules{}.grants{}.group_id I look for events containing "sg-19c". It gave me 2 events. Here is a sample of my json data : Event 1: { [-] account_id: 1111 description: test id: sg-f65 instances: [ [+] ] name: test owner_id:1111 region: 222 rules: [ [-] { [-] from_port: xxx grants: [ [-] { [-] cidr_ip: null group_id: sg-19c name: null owner_id: 1111 } { [-] cidr_ip: null group_id: sg-e name: null owner_id: 1111 } { [-] cidr_ip: null group_id: sg-8 name: null owner_id: 1111 } { [-] cidr_ip: null group_id: sg-0 name: null owner_id: 1111 } { [-] cidr_ip: null group_id: sg-1 name: null owner_id: 1111 }]}] Event 2 : { [-] account_id: 1111 description: test id: sg-19c } If I make a table command, I get this table in my first post : What I want is to extract "id" present in "group_id" field. Hope you can help me ! Thanks a lot.
... View more
- Tags:
- extraction
03-22-2021
10:00 AM
Hi, I have 2 events which are not containing same fields. Event A : { [-] account_id: 1234 description: Test id: efgh } Event B : { [-] account_id: 5678 description: Dev id: abcd name: [ [-] { [-] group_id: efgh } { [-] group_id: ijkl } { [-] group_id: mnop } I have a table like this : id group_id abcd efgh ijkl mnop efgh I want to check if the id "efgh" is a value of "group_id" field. I tried this : | eval result=if(like(id,"%".group_id."%"),"OK","Not OK") But it gave me "Not OK" as result. Can you help me please ? Thanks !
... View more
- Tags:
- eval
03-22-2021
08:35 AM
Hi @493669 , The problem is when I want to filter the time picker to "last 60 minutes", show me nothing because splunk indexes in UTC. Example value : _time = 3/22/21 3:10:00.000 PM timestamp = 1616425200.000000 Even if I add : index=test sourcetype=stash |eval _time=timestamp with time picker filter to "last 60 minutes", I get nothing : whereas when I increase time picker to "last 4 hour", I have events on last hour : How can I deal with that ?
... View more
03-22-2021
07:41 AM
Hi, I have build a report to extract several fields. Summary Indexing by default send result into the "stash" sourcetype. This is how splunk knows that data is already in splunk and my summary data will not be account for additional license. But I want to change the time parameter in stash sourcetype. I have a field "timestamp" in my log in epoch time : I would like to index my logs with the "timestamp" field, but it does not work. I create a props.conf in my app : [stash] TIME_PREFIX = timestamp\=\" TIME_FORMAT = %s I also tried TIMESTAMP_FIELDS = timestamp but no more result. Example of timestamp value : How can I give timestamp value in _time field ? Can you help me please ?
... View more
- Tags:
- indexation
03-16-2021
01:22 AM
I tried your code, but it gave me this : What I want is to have automatically the username selected by default, and not to click on "Select". That's why I tried to put the token into the <default> value, but it does not work at all. I use this user token in multiple queries on my dashboard, and since there is only one value for a user then I would like this value to be the default.
... View more
03-15-2021
09:06 AM
Hi, I tried to set an input which displays the name of the user who open the dashboard. I tried a dropdown input where the default is my username and it works well : But my username appears when other user open the dashboard with their own username (they have both mine and theirs), instead only theirs. So I checked the code, and what I found is when I select mine as default, it retained mine in the code : <input type="dropdown" token="user_tok" searchWhenChanged="true"> <label>your username is :</label> <fieldForLabel>username</fieldForLabel> <fieldForValue>username</fieldForValue> <search> <query>| rest /services/authentication/current-context splunk_server=local | fields roles username | mvexpand roles | fields username</query> </search> <change> <condition match="isnotnull($value$) AND $value$!="""> <set token="tokTextFilter">$value$</set> </condition> </change> <default>gxxxx</default> I tried to set the token input in the default : <default>$user_tok$</default> But nothing changed. How can I set by default and displays only the username who goes to the dashboard ? Thanks for your help !
... View more
Labels
- Labels:
-
token
03-11-2021
07:32 AM
Hi @manjunathmeti I tried your solution and it gave me this : 20210201 = 22-08-1970 : there is a problem ... I tried another command : | convert timeformat="%Y-%m-%d" mktime("date") and thant's worked ! All values in %Y-%m-%d format are converted to epoch time ! Thanks for your help !
... View more
- Tags:
- hi
03-11-2021
05:36 AM
Hi, I have a field which contains epoch date and date time like %Y%m%d : I want this format %Y%m%d for all values in "date" field. How can I convert epoch to date like %Y%m%d in this field ? Thanks !
... View more
- Tags:
- epoch time
02-22-2021
01:28 AM
Hi, I am confused about the new "USERS AND AUTHENTICATION" section in settings tab. How can I add "roles" tab ? Actually, I have this : But no more "Roles" link ! Can you help me please ? Thanks.
... View more
Labels
- Labels:
-
authentication