All Posts

Find Answers
Ask questions. Get answers. Find technical product solutions from passionate members of the Splunk community.

All Posts

@Nawab- The answer is yes, you can setup SSL on both places and you can also set SSL only for HF to Indexer. I think it should not matter what you use from UF to HF and HF to Indexer, they should ac... See more...
@Nawab- The answer is yes, you can setup SSL on both places and you can also set SSL only for HF to Indexer. I think it should not matter what you use from UF to HF and HF to Indexer, they should act independent from each other.   Connection with SSL   inputs.conf --------------- [splunktcp-ssl:9997] serverCert = <string> sslPassword = <string> requireClientCert = <boolean> sslVersions = <string> cipherSuite = <cipher suite string> ecdhCurves = <comma separated list of ec curves> dhFile = <string> allowSslRenegotiation = <boolean> sslQuietShutdown = <boolean> sslCommonNameToCheck = <commonName1>, <commonName2>, ... sslAltNameToCheck = <alternateName1>, <alternateName2>, ... useSSLCompression = <boolean> outputs.conf ------------------ [tcpout] defaultGroup = my_indexers [tcpout:my_indexers] server = <indexer>:9997 sslPassword = password clientCert = $SPLUNK_HOME/etc/auth/server.pem (<Check outputs.conf.spec for other SSL configs)     Connection without SSL   inputs.conf --------------- [splunktcp:9997] outputs.conf ------------------ [tcpout] defaultGroup = my_indexers [tcpout:my_indexers] server = <indexer>:9997     I hope this helps!!!!
Hi @tuts , are you speaking of Enterprise Security? Anyway, if you install the Splunk Security Essentials App (https://splunkbase.splunk.com/app/3435) you have all the available Correlation Searche... See more...
Hi @tuts , are you speaking of Enterprise Security? Anyway, if you install the Splunk Security Essentials App (https://splunkbase.splunk.com/app/3435) you have all the available Correlation Searches and for each one there's s test data set that you can use. Ciao. Giuseppe
We have below deployement, UF ----> HF ----> IDX Uf are sending data to Hf and Hf is acting as and Intermediatry forwarder between UF and IDX. Now we want to do TLS b/w splunk components. can we do... See more...
We have below deployement, UF ----> HF ----> IDX Uf are sending data to Hf and Hf is acting as and Intermediatry forwarder between UF and IDX. Now we want to do TLS b/w splunk components. can we do TLS between HF and IDX and leave UFs. Will UF data will also be TLS complient? If not will UF still sends data to IDXs or we will stop receiving logs all together?
Hello, I am experiencing a periodic issue with smartstore where a bucket will try to be evicted then proceeds to fail and does that cycle thousands of times. The indexer IO is fine, the bucket is ... See more...
Hello, I am experiencing a periodic issue with smartstore where a bucket will try to be evicted then proceeds to fail and does that cycle thousands of times. The indexer IO is fine, the bucket is warm, we have enough cache sizing, and I have not been able to correlate any cache logs with when these failures begin on multiple indexer nodes in the cluster (~33% of indexers). 2 questions: * What is an urgent mode eviction? * What can cause warm buckets to be unable to be evicted when they rolled to warm ~a full day earlier?
Thanks @yuanliu ! I willl try this promptly tomorrow and let you know of the results - will accept as solution if it works:)
I'm not normally one to resurrect dead posts, but as I was myself trying to accomplish the same task and via Google found this post, figured I'd give an update.  Per the documentation for the TA (ht... See more...
I'm not normally one to resurrect dead posts, but as I was myself trying to accomplish the same task and via Google found this post, figured I'd give an update.  Per the documentation for the TA (https://docs.splunk.com/Documentation/AddOns/released/CiscoASA/Releasehistory) they removed the eventgen support in version 3.2.5  
Tom everything seems to be working fine. Your help was crucial in finding the problem. Thank you very much
If all else fails, it's always useful to check job log and see the lispy search. Might not solve the problem but can give valuable insight.
Peace be upon you. I am now running correlation searches and I do not have data to fully test them. I want to activate them in order to protect the company from any attack. I have MITRE ATT&CK Compli... See more...
Peace be upon you. I am now running correlation searches and I do not have data to fully test them. I want to activate them in order to protect the company from any attack. I have MITRE ATT&CK Compliance Security Content But I do not know where to start and how to arrange myself I hope for advice
Well, Splunk can be a bit inconsistent sometimes about using quotes. But when you're referencing something as an argument to the function (or a rvalue in an assignment), double quotes will mean that ... See more...
Well, Splunk can be a bit inconsistent sometimes about using quotes. But when you're referencing something as an argument to the function (or a rvalue in an assignment), double quotes will mean that Splunk will use literal string. So | eval new_value="Posted Transaction Date" Would yield a literal string, not the field contents. (Same with strptime arguments). But yes, in other places that can be a bit unobvious which form to use at any given point.
Hi Joe, there is a command documentation in default/searchbnf.conf [curl-command] syntax = CURL [choice:URI=<uri> OR URIFIELD=<urifield>] [optional: METHOD=<GET|PATCH|POST|PUT|DELETE> VERIFYSSL=<... See more...
Hi Joe, there is a command documentation in default/searchbnf.conf [curl-command] syntax = CURL [choice:URI=<uri> OR URIFIELD=<urifield>] [optional: METHOD=<GET|PATCH|POST|PUT|DELETE> VERIFYSSL=<TRUE|FALSE> DATAFIELD=<field_name> DATA=<data> HEADERFIELD=<json_header_field_name> HEADERS=<json_header> USER=<user> PASS=<password> DEBUG=<true|false> SPLUNKAUTH=<true|false> SPLUNKPASSWDNAME=<username_in_passwordsconf> SPLUNKPASSWDCONTEXT=<appcontext (optional)> TIMEOUT=<float>] -k = "VERIFYSSL=FALSE" headers="{\"content-type\":\"application/json\"}" best regards, Andreas
Hi @chimuru84 , sorry, I  ,isunderstood yur requirement! let me understand: you want to know the users connected to a third party authentication in the last hour that didn't do another connection i... See more...
Hi @chimuru84 , sorry, I  ,isunderstood yur requirement! let me understand: you want to know the users connected to a third party authentication in the last hour that didn't do another connection in the last year but they did before, is it correct? at first: how long do you want to run your check: two years? Then, when you say "authentication at the moment", are you meaning in the last hour or what else? With the above hypotesis So, please try this: index=...... earliest=-2y latest=-h [ search index=...... earliest=-h latest=now | dedup id | fields id ] | eval period=if(_time>now()-31536000, "last Year","Previous Year") | stats dc(Period) AS Period_count values(Period) AS Period BY id | where Period_count=1 AND Period!="Previous Year" | table id In ths way, you have yje users connected in the last hour  that did the last connection (except the last hour) more than one year. If you need a different condition, you can use my approach. Ciao. Giuseppe
Hi @gcusello! I think I didn't ask the question correctly. I want to make a query that returns the users who had a third-party authentication (at the moment), and the last time they passed the authen... See more...
Hi @gcusello! I think I didn't ask the question correctly. I want to make a query that returns the users who had a third-party authentication (at the moment), and the last time they passed the authentication was 365 days ago.
It looks like the script is failing for the data being used - depending on what the script actually does, you could try different time periods e.g. hourly through 5th to see if you can backfill your ... See more...
It looks like the script is failing for the data being used - depending on what the script actually does, you could try different time periods e.g. hourly through 5th to see if you can backfill your summary index that way. Alternatively, try running the search that the script uses (without the collect command) to see if there are any errors.
We are using Splunk cloud in our enterprise and as part of an automation project we want programatic way for doing Splunk search. Based on Splunk website we found that there is node module splunk-sdk... See more...
We are using Splunk cloud in our enterprise and as part of an automation project we want programatic way for doing Splunk search. Based on Splunk website we found that there is node module splunk-sdk (https://www.npmjs.com/package/splunk-sdk) using which we can access Splunk even though the module is not mentioning explicitly anything about Splunk cloud.  Following is the code we attempted but its failing to connect. Would like to know if any special configuration needs to be done in order to achieve the connection.   (async=>{ let splunkjs = require('splunk-sdk'); let service = new splunkjs.Service({username: "myusername", password: "***"}); async function myFunction() { try { await service.login(); console.log("Login was successful: " + success); let jobs = await jobs.fetch(); let jobList = jobs.list(); for(let i = 0; i < jobList.length; i++) { console.log("Job " + i + ": " + jobList[i].sid); } } catch(err) { console.log(err); }   Following is the error we are getting. Please help in understanding and resolving this issue if anyone has encountered the same issue.
Do you have Victoria or Classic experience? You could check it from support -> about or something similar on SCP GUI.
Just as an FYI, I find that a chart is typically most readable when the max value is around 3/4 of the Y-scale so you might want to do something like this: <eval token="chartmax">ceiling($result.ma... See more...
Just as an FYI, I find that a chart is typically most readable when the max value is around 3/4 of the Y-scale so you might want to do something like this: <eval token="chartmax">ceiling($result.max_duration$*4/300)*100</eval>
While kvdelim and pairdelim accept a string of characters as arguments, they will match against only one in each set.  It essentially means, "one of these characters is between each pair".  Try this ... See more...
While kvdelim and pairdelim accept a string of characters as arguments, they will match against only one in each set.  It essentially means, "one of these characters is between each pair".  Try this workaround. | rex mode=sed "s/ _: / = /g" | extract kv pairdelim=" " kvdelim="="
Hi team, New user here.  I was going through https://docs.splunk.com/Documentation/SplunkCloud/9.2.2403/Admin/ConfigureIPAllowList I have the sc_admin role, I have also enabled token authenticatio... See more...
Hi team, New user here.  I was going through https://docs.splunk.com/Documentation/SplunkCloud/9.2.2403/Admin/ConfigureIPAllowList I have the sc_admin role, I have also enabled token authentication and my splunk cloud version is greater then 8.2.2201  I wanted to add certain IP address to allow list, However I don't see the option to add IP address (screenshot attached)
Thank you for your help, Sorry, I am not very familiar at all with coding.  I am struggling thru the Python script, but making progress.  So the first API call I need to make is: "https://ServerName... See more...
Thank you for your help, Sorry, I am not very familiar at all with coding.  I am struggling thru the Python script, but making progress.  So the first API call I need to make is: "https://ServerName/nitro/v1/config/lbvserver" This gives me a JSON return with about 50  name values like:   [ { "name":"server1", "insertvserveripport":"OFF", }, { "name":"server2", "insertvserveripport":"OFF", },   I need to make a secondary API call that would use these names in the API URL, like: https://su-ns-vpx-int-1.siteone.com/nitro/v1/config/lbvserver_servicegroup_binding/(name) I can't figure out how to capture the name values from the first API call in order for the second API call to be executed for each variable. : (   I hope that makes sense.   Here's the actual code I am using:       import os import sys import time import datetime import json ''' IMPORTANT Edit only the validate_input and collect_events functions. Do not edit any other part in this file. This file is generated only once when creating the modular input. ''' ''' # For advanced users, if you want to create single instance mod input, uncomment this method. def use_single_instance_mode(): return True ''' def validate_input(helper, definition): """Implement your own validation logic to validate the input stanza configurations""" # This example accesses the modular input variable # global_account = definition.parameters.get('global_account', None) pass def collect_events(helper, ew): # Note, for single instance mod input, args will be returned as a dict. # For multi instance mod input, args will be returned as a single value. opt_global_account = helper.get_arg('global_account') global_userdefined_global_var = helper.get_global_setting("userdefined_global_var") # The following examples send rest requests to some endpoint. url="https://servername.com/nitro/v1/config/lbvserver" headers = {"authorization":"Basic bnNyb2dghdg90O0c2NsciEh"} final_result = [] response = helper.send_http_request(url, 'GET', parameters=None, payload=None,headers=headers, cookies=None, verify=True, cert=None,timeout=None, use_proxy=True) # get response body as json. If the body text is not a json string, raise a ValueError r_json = response.json() for name in r_json["lbvserver"]: state = helper.get_check_point(name["name"]) if state is None: final_result.append(name) helper.save_check_point(name["name"], "Indexed") helper.delete_check_point(name["name"]) # get response status code r_status = response.status_code if r_status !=200: # check the response status, if the status is not sucessful, raise requests.HTTPError response.raise_for_status() # To create a splunk event event = helper.new_event(json.dumps(final_result), time=None, host=None, index=None, source=None, sourcetype=None, done=True, unbroken=True) ew.write_event(event)         Thanks again for responding, very much appreciated.   Thanks, Tom