Activity Feed
- Posted Re: How to save the results of a search into a token on Dashboards & Visualizations. 05-18-2022 01:05 PM
- Karma Re: How to save the results of a search into a token for somesoni2. 05-18-2022 01:02 PM
- Posted How to save the results of a search into a token? on Dashboards & Visualizations. 05-18-2022 12:00 PM
- Karma Re: How to create a timechart with a time field? for ITWhisperer. 05-10-2022 09:30 AM
- Posted How to create a timechart with a time field? on Splunk Search. 05-09-2022 01:14 PM
- Posted Re: How to configure Drilldown after using transpose command? on Dashboards & Visualizations. 04-22-2022 07:35 AM
- Karma Re: How to configure Drilldown after using transpose command? for ITWhisperer. 04-22-2022 07:34 AM
- Posted How to configure Drilldown after using transpose command? on Dashboards & Visualizations. 04-21-2022 11:30 AM
- Posted Re: How to Sort Fields by color using eval and chart? on Dashboards & Visualizations. 04-20-2022 10:53 AM
- Karma Re: How to Sort Fields by color using eval and chart? for ITWhisperer. 04-20-2022 10:40 AM
- Posted Re: How to Sort Fields by color using eval and chart? on Dashboards & Visualizations. 04-20-2022 09:34 AM
- Posted How to sort fields ? on Dashboards & Visualizations. 04-20-2022 08:58 AM
- Posted Re: Help to convert it using strftime on Splunk Search. 04-08-2022 10:31 AM
- Karma Re: Help to convert it using strftime for richgalloway. 04-08-2022 10:31 AM
- Posted Help to convert date using strftime on Splunk Search. 04-08-2022 09:05 AM
- Got Karma for Re: Add-on Builder vs AppInspect vs slim. Which is the best? How to call them automatically?. 04-01-2022 09:40 AM
- Posted Re: Add-on Builder vs AppInspect vs slim. Which is the best? How to call them automatically? on All Apps and Add-ons. 04-01-2022 07:37 AM
- Posted Re: Cannot find percentage and count using stats and eval on Dashboards & Visualizations. 03-30-2022 09:07 AM
- Got Karma for Re: Cannot find percentage and count using stats and eval. 03-30-2022 09:00 AM
- Posted Re: Cannot find percentage and count using stats and eval on Dashboards & Visualizations. 03-30-2022 08:20 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
05-18-2022
01:05 PM
@somesoni2 Switching from row to results worked as needed. Thank you, Marco
... View more
05-18-2022
12:00 PM
I'm trying to save the results of my search in a token so I can reference it in another visualization. I've read other post and people are using the <done> tags to solve this issue.
Below is my code
<row>
<panel>
<single>
<search>
<query>index = * | stats count as c</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<done>
<set token="results" >$row.c$</set>
</done>
</search>
<option name="drilldown">none</option>
</single>
</panel>
</row>
ideally I would like to reference the "Results" token in other searches. Any help is appreciated.
-Marco
... View more
- Tags:
- token
Labels
- Labels:
-
form
-
simple XML
-
table
-
token
05-09-2022
01:14 PM
I'm trying to make a time chart where it uses the time value specified in my table. Rather than the default _time value.
Currently I'm trying something like this:
base search |eval Failures = if(STATUS ="Failed",1,0) | timechart sum(Failures) by TIME
DATE
TIME
SYSTEM
Failures
03/01/2022
12:00
Development
10
03/01/2022
13:00
Development
2
04/01/2022
15:00
Development
3
05/01/2022
18:00
Development
8
Any suggestions help :-).
Thank you,
Marco
... View more
04-22-2022
07:35 AM
@ITWhisperer Thank you!! Also, great explanation. -Marco
... View more
04-21-2022
11:30 AM
After issuing a transpose command on my bar chart visualization I can't configure conditional drilldowns.
I tried using the untable command followed by the xyz series command and no luck. this is the query:
search *
| eval CATI = if(SEVCAT=="I", 1,0)
| eval CATII = if(SEVCAT=="II", 1,0)
| eval CATIII = if(SEVCAT=="III", 1,0)
| chart sum(CATI) as I sum(CATII) as II sum(CATIII) as III
| transpose
| sort - "row 1"
The Drilldown XML :
<drilldown>
<condition field = "I">
<link target="blank"></link>
</condition>
<condition field = "II">
<link target="blank"></link>
</condition>
<condition field = "III">
<link target="blank"></link>
</condition>
</drilldown>
Any help is appreciated.
Thank you, Marco
... View more
Labels
- Labels:
-
chart
-
drilldown
-
simple XML
04-20-2022
10:53 AM
@ITWhisperer Thank you I modified it a bit and it works. For people in the future, this is the final query, with the final visualization. search *
| eval CATI = if(SEVCAT=="I", 1,0)
| eval CATII = if(SEVCAT=="II", 1,0)
| eval CATIII = if(SEVCAT=="III", 1,0)
| chart sum(CATI) sum(CATII) sum(CATIII)
| transpose
| sort - "row 1" -Marco
... View more
04-20-2022
09:34 AM
The values in descending order. The table below represents my bar chart: sum(CATI) sum(CATII) sum(CATIII) 7 141 3 I want the bar chart to sort it out in descending order, so that way sum(CATII) shows first, sum(CATI) second, ,and sum(CATIII) third -Marco
... View more
04-20-2022
08:58 AM
I am currently using a bar chart visualization but I need to sort the bars by descending order. I can't use a simple chart count by EVNTSEVCAT | sort -count because the SEVCAT field contains multiple values and we only need I,II, and III. below is my query
search *
| eval CATI = if(SEVCAT=="I", 1,0)
| eval CATII = if(SEVCAT=="II", 1,0)
| eval CATIII = if(SEVCAT=="III", 1,0)
| chart sum(CATI) sum(CATII) sum(CATIII)
| transpose
The visualization:
I need the visualization to be sorted in descending order. Any suggestions help :-).
Thank you,
Marco
... View more
Labels
- Labels:
-
panel
-
simple XML
04-08-2022
10:31 AM
@richgalloway This worked. Thank you for your time and explanation . -Marco
... View more
04-08-2022
09:05 AM
Currently I have a field holding a Julian date. I am trying to convert it using strftime but i'm having issues. Date = 2022.091 Current query: index = * | eval ConvertedDate = strftime(DATE,"%Y.%j")| table ConvertedDate Ideally I would like to get an output like 04/03/2022 Thank you, Marco
... View more
04-01-2022
07:37 AM
1 Karma
Having already built a Splunk app and Publishing it on Splunkbase i'm familiar with AppInspect and slim. Slim is used to package your Splunk App. Slim ships with Splunk, it's inside the Bin Folder. Link To Slim Docs In regards to automation, you can use AppInspect with Postman. It makes the AppInspect process easier. I made a video on how to use AppInspect with Postman AppInspect with Postman Tutorial . Also here is the link to the Docs: AppInspect With Postman . I've never used Add-on Builder. In conclusion, One tool isn't better than the other, they each serve their own purpose. Slim packages your app and AppInspect uses that packaged app to make sure its good for SplunkBase. -Marco
... View more
03-30-2022
09:07 AM
Try the following: | baseSearch ...
|eval IT_Managed= if(IT_Managed == "Yes" , 1,0)
|stats sum(IT_Managed) count as COMP count(IT_Managed) as TOTAL
|eval percentage = (COMP/TOTAL) * 100
|table COMP percentage If this helped, please accept as solution 🙂 -Marco
... View more
03-30-2022
08:20 AM
1 Karma
Yes, I forgot a space in the second stats command. After taking a second look I believe that using 1 stats command will work fine. I modified the search | baseSearch ...
|eval IT_Managed= if(IT_Managed == "Yes" , 1,0)
|stats sum(IT_Managed) count as COMP count(IT_Managed) as TOTAL
|eval percentage = COMP/TOTAL* 100
|table COMP percentage -Marco
... View more
03-30-2022
07:39 AM
1 Karma
Try the following: |base search ...
|stats count(IT_Managed) as TOTAL
|eval IT_Managed= if(IT_Managed == "Yes" , 1,0)
|stats sum(IT_Managed) count as COMP
|eval percentage = COMP/TOTAL* 100
|table COMP percentage -Marco
... View more
03-22-2022
09:38 AM
@elomotanpru I was able to get it to work on my system, your Where statement looks strange, what are you trying to accomplish. -Marco
... View more
03-22-2022
08:06 AM
1 Karma
@elomotanpru There's many ways to do this, here's one way to do it. index=*
| eval DATE = strftime(_time, "%m/%d/%Y")
| eval TIME = strftime(_time, "%T")
|eval DateAndTime = DATE +" "+TIME
|table DATE TIME DateAndTime @elomotanpru The following doc explains Date and Time formatting. If this helped please like and accept as solution. https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Commontimeformatvariables#Time_variables
... View more
03-22-2022
07:45 AM
@elomotanpru Can you post an example of how you want the time & date to look like?
... View more
02-25-2022
08:06 AM
Have you considered using the submit button? In order to use the submit button you have to change "search on change" off on all your other inputs. -Marco
... View more
02-23-2022
11:49 AM
Currently, I have a Table that gives me Severity Categories.
Sevcat I
Sevcat II
Sevcat III
5
10
12
I'm using the following SPL to generate this table:
|eval CATI = if(SEVCAT="I", 1,0)
|eval CATII = if(SEVCAT="II", 1,0)
|eval CATIII = if(SEVCAT="III", 1,0)
|stats sum(CATI) as "Sevcat I" sum(CATII) as "Sevcat II" sum(CATIII) as "Sevcat III"
|table "Sevcat I" "Sevcat II" "Sevcat III"
Is there some way to convert this table into a piechart. Any help is appreciated 🙂 -Marco
... View more
Labels
- Labels:
-
chart
-
single value
-
table
02-16-2022
10:18 AM
After thoroughly reading the Inputs.Conf. I realized that splunktcp / splunktcp:ssl is for data being forwarded. In my case since data was not being forwarded the appropriate field is tcp-ssl:514. https://docs.splunk.com/Documentation/Splunk/8.2.4/Admin/Inputsconf#Data_distribution: Below is my new working inputs.conf : [script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]
disabled = 0
[tcp-ssl:514]
sourcetype = syslog
[SSL]
serverCert = C:\Program Files\Splunk\etc\auth\server.pem
sslVersions = tls1.2
cipherSuite = ECDHE-RSA-AES256-GCM-SHA384
sslPassword = PASSWORD I appreciate all your input. -Marco
... View more
02-16-2022
09:43 AM
Yes, that is my dilemma. I'll just package the app with pictures pointing to the appserver/static/images and test if the images stick. I appreciate the feedback. -Marco
... View more
02-10-2022
10:44 AM
Hi @PickleRick , I know that TLS is working to some extent because I had to fix and select the correct Ciphers on each end. Also, when I switch my Syslog Server to Just TCP and Leave Splunk as TLS. I get the following message: 02-10-2022 10:08:59.956 -0800 ERROR TcpInputProc [5848 FwdDataReceiverThread] - Error encountered for connection from src=myserver.com:1571. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol Leading me to believe that I am at least making the handshake when I specify TLS on both ends. Just to clarify, this data is coming from a Syslog Server that I am trying to send to My Splunk Enterprise(No Forwarder) Thank You, Marco @PickleRick
... View more
02-09-2022
11:25 AM
I am setting up TCP with TLS. Currently I have a Syslog Server sending data to my Splunk Instance but my Message is being rejected:
02-09-2022 11:15:13.039 -0800 ERROR TcpInputProc [3972 FwdDataReceiverThread] - Message rejected. Received unexpected message of size=1009989694 bytes from src=myserver.com:1571 in streaming mode. Maximum message size allowed=67108864. (::) Possible invalid source sending data to splunktcp port or valid source sending unsupported payload.
Below is my Inputs.conf
[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]
disabled = 0
[splunktcp-ssl:514]
sourcetype = syslog
[SSL]
serverCert = C:\Program Files\Splunk\etc\auth\server.pem
sslVersions = tls1.2
cipherSuite = ECDHE-RSA-AES256-GCM-SHA384
sslPassword = PASSWORD
Any help is appreciated Thank you,
Marco
... View more
Labels
- Labels:
-
encryption
-
SSL
02-08-2022
07:52 AM
Hi @PickleRick, Thank you for the clarification on the certs. I believe what I am doing is incorrect so my question is: If you had to send data from a server via TCP-TLS to Splunk. Where would you start? Thank You, Marco
... View more
02-04-2022
10:37 AM
Right now I have a Syslog Server Sending me security events. The Syslog server is sending the data with TLS encryption.
I have the PEM file, so that Splunk can do the three way handshake and accept my data.
My question is, where do I put that .PEM file.
Currently my Inputs.conf file looks like this:
[tcp-ssl:520]
serverCert = $SPLUNK_HOME/etc/auth/mycerts/myCert.pem
sslPassword = PASSWORD
My Server.conf file looks like this:
[sslConfig]
enableSplunkdSSL = true
sslPassword = $**************************
sslRootCAPath = $SPLUNK_HOME/etc/auth/mycerts/myCert.pem
My certificate is stored in C:\Program Files\Splunk\etc\auth\mycerts What am I missing? Any help is appreciated Thank you,
Marco
... View more
Labels
- Labels:
-
inputs.conf
-
syslog