All Posts

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

All Posts

@ksing Thanks for sharing the script, it's running fine. But, still the Splunk Service is not running, please refer to the below output details. Additionally, am thinking that the existing version w... See more...
@ksing Thanks for sharing the script, it's running fine. But, still the Splunk Service is not running, please refer to the below output details. Additionally, am thinking that the existing version was not uninstalled properly/corrupted. Is there proper way to clean existing Splunk entries from the device? Thanks. Output: Status Name DisplayName ------ ---- ----------- Stopped SplunkForwarder SplunkForwarder Service SplunkForwarder service is Running on Copying necessary files for splunk ... stopping splunk service copying C:\splunk_install copy C:\splunk_install complete copying Copy-Item : Cannot bind argument to parameter 'Path' because it is null. At line:18 char:26 + Copy-Item -Recurse -Path $opappsrc -Destination $appPath -Force + ~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Copy-Item], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CopyItemCommand copy conmplete Start-Service : Service 'SplunkForwarder Service (SplunkForwarder)' cannot be started due to the following error: Cannot start service SplunkForwarder on computer '.'. At line:20 char:1 + Start-Service -Name SplunkForwarder + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommand Exception + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand Validating by checking if service is running. Get-Service : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At line:22 char:51 + Get-Service -Name "SplunkForwarder" -ComputerName $file -ErrorAction ... + ~~~~~ + CategoryInfo : InvalidData: (:) [Get-Service], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.GetServiceCommand SplunkForwarder service is Running on Complete
Hi @mninansplunk , good for you, see next time! Ciao and happy splunking Giuseppe P.S.: Karma Points are appreciated by all the contributors
Hi, Can you please share the exact commands you've run so far? And also the values of those environment variables you set? Assuming these are the docs you're using: Python https://docs.splunk.com... See more...
Hi, Can you please share the exact commands you've run so far? And also the values of those environment variables you set? Assuming these are the docs you're using: Python https://docs.splunk.com/observability/en/gdi/get-data-in/application/python/instrumentation/instrument-python-application.html#instrument-python-applications Django https://docs.splunk.com/observability/en/gdi/get-data-in/application/python/instrumentation/instrument-python-frameworks.html#django-instrumentation  
  @avitallangedo you have any solution to sort from higher to lower for a dynamic columns in a chart?
If you need to tweak your regexes, that's a great interactive tool to test them. https://regex101.com/
You install ES differently on a standalone SH and on a SHC. So you must either firstly set up a SHC (and for that you don't use an existing SH - you spin up a clear SH and join it to the SHC). Whethe... See more...
You install ES differently on a standalone SH and on a SHC. So you must either firstly set up a SHC (and for that you don't use an existing SH - you spin up a clear SH and join it to the SHC). Whether you want a SHC depends on your needs and expected workload. You can create a SHC (but again - you must create a new SHC and then possibly migrate some of your settings from existing standalone SH manually) and install ES on it. But just as well you could set up a dedicated SH just for ES use (and use the other SH for "normal" Splunk work). Both approaches have their pros and cons. Single SHC is bigger in minimal option (you need at least three SHs for the SHC and a deployer) but is probably easier to manage than two separate SHs - they can be painful to keep relevant configs in sync.
Awesome, that did the trick, thank you very much for the quick help!!! Thanks
Hi all,   I get the following error under the index=_internal and the jira ticket is not created.    WARN sendmodalert [28064 AlertNotifierWorker-0] - action=jira_service_desk_replay - Alert acti... See more...
Hi all,   I get the following error under the index=_internal and the jira ticket is not created.    WARN sendmodalert [28064 AlertNotifierWorker-0] - action=jira_service_desk_replay - Alert action script returned error code=4  Do you have any idea what the problem might be?  
Thanks a lot @richgalloway. Answer to Question 2 is exactly what I supposed.  Regarding point 1, is the syntax I posted is the one to use to "insert" ES on environment or should I use another one?
Hi ITWhisperer,   Thanks, its almost done, but i see a space (gap) before the timestamp, how can we delete this space?    
SEDCMD-strip-tcp-priority=s/^<\d+>\d//
The ES SH should be kept separate and not joined with the existing SH into a cluster because: 1) you need at least 3 SHs to make a cluster; 2) SHs must be virgin to form a cluster; 3) ES doesn't play... See more...
The ES SH should be kept separate and not joined with the existing SH into a cluster because: 1) you need at least 3 SHs to make a cluster; 2) SHs must be virgin to form a cluster; 3) ES doesn't play well with other apps and so needs to be on its own.
Hi Guys   We are getting logs through syslog with its priority / facility data “ <14>1” prepended with every events as below;     <14>1 2024-01-18T13:45:06.621+0000 756565656565701b-cd27-475e-ba... See more...
Hi Guys   We are getting logs through syslog with its priority / facility data “ <14>1” prepended with every events as below;     <14>1 2024-01-18T13:45:06.621+0000 756565656565701b-cd27-475e-bab4-3e0e0893d273 <14>1 2024-01-18T13:39:47.014+0000 565gt5t54t-cd27-475e-bab4-565656565gh       We are trying to remove this prefix texts “<14>1” using SEDCMD  on props.conf as below;   [source::tcp:7514] SEDCMD-strip-tcp-priority=s/^<\d+>//   This is doing almost very close help by removing “<14>” but still “1” is coming up in events. Can some one please help us how to remove this prefix “ <14>1” on every events using SEDCMD ?     Regards.
count(MOBILE) and count(WIFI) are merely counting the instances where the field is present (not null). Since you have set them to either 1 or 0, they are always present. Either set them to 1 or null(... See more...
count(MOBILE) and count(WIFI) are merely counting the instances where the field is present (not null). Since you have set them to either 1 or 0, they are always present. Either set them to 1 or null(), or use sum(MOBILE) and sum(WIFI) instead
Hi @mninansplunk, sometimes ields with dot insied don't work in eval, so you have two solutions: use quotes: | eval MOBILE=if("network.connectType"="MOBILE","1","0") | eval WIFI=if("network.connec... See more...
Hi @mninansplunk, sometimes ields with dot insied don't work in eval, so you have two solutions: use quotes: | eval MOBILE=if("network.connectType"="MOBILE","1","0") | eval WIFI=if("network.connectType"="WIFI","1","0") or use a rename before the eval: | rename network.connectType AS network_connectType | eval MOBILE=if(network_connectType="MOBILE","1","0") | eval WIFI=if(network_connectType="WIFI","1","0") I prefer the second solution. Ciao. Giuseppe
Hello,  I've been researching this online for over a day and nothing seems to be working for me.  I have 2 EVAL IF statements that simply looks at the network.connectType field.   | eval MOBILE=if(n... See more...
Hello,  I've been researching this online for over a day and nothing seems to be working for me.  I have 2 EVAL IF statements that simply looks at the network.connectType field.   | eval MOBILE=if(network.connectType="MOBILE","1","0") | eval WIFI=if(network.connectType="WIFI","1","0") I am in need of creating a table that would show the count of MOBILE, WIFI, TOTAL, by Branch. i.e  Branch | Total | WIFI | MOBILE I'm able to create the table, but the two evals always show the same counts as the Total count.  I can't figure out why I am doing wrong. The search I am using is the following: index=main "details.package"="com.siteone.mobilepro", "details.tag"="Connectivity Service", event=NoConnectivityEvent, "details.message.additionalInfo.NetworkAccessStatus"="None" | fields network.connectType, event, userSettings.site | eval MOBILE=if(network.connectType="MOBILE","1","0") | eval WIFI=if(network.connectType="WIFI","1","0") | stats values("userSettings.site") as Branch, count(event) as "Total Disconnects", count(MOBILE) as "Cellular Disconnects", count(WIFI) as "Wifi Disconnects" by "userSettings.site" | table Branch, "Total Disconnects", "Wifi Disconnects", "Cellular Disconnects"   Any help on this would be awesome and much appreciated. Thanks    
Hi Splunkers, I have a doubt about setting for Splunk Enterprise Security. As usual when I put a question here, let me share a minimal of context and assumption. Environment: A completely on prem... See more...
Hi Splunkers, I have a doubt about setting for Splunk Enterprise Security. As usual when I put a question here, let me share a minimal of context and assumption. Environment: A completely on prem Splunk Enterprise (no Slunk Cloud SaaS). Currently, only one SH Clustered indexers Task:  Install and configure a SH with Splunk Enterprise Security. Assumption: I know the full installation procedure (doc + Splunk Enterprise Admin course) I know how to manage a cluster environment (doc + Architect course). For example, I know that if I have to set a Splunk instance as SH I can use, from CLI: > splunk edit cluster-config -mode searchhead -manager_uri https://<manager node address> -secret <cluster secret>   Questions: This syntax is still valid to add a SH with ES installed on it? The doubt is if the ES presence should lead me to use a different approach to tell "Hey, SH wth ES: indexers to query are those". SH with ES component should be  add as single SH (so, decoupled from already existing SH) or should I create a SH Cluster with normal SH + ES ES?
Typically syslog events sent over the network start with a <number> containing information about so called "facility" and severity of the event.  See https://datatracker.ietf.org/doc/html/rfc3164#sec... See more...
Typically syslog events sent over the network start with a <number> containing information about so called "facility" and severity of the event.  See https://datatracker.ietf.org/doc/html/rfc3164#section-4.1.1
I appreciate your time, thanks again!   I figured there wouldn't be an "easy" button, finding this community for ideas is as close as it gets.  I will check out some tutorials and hopefully it's one... See more...
I appreciate your time, thanks again!   I figured there wouldn't be an "easy" button, finding this community for ideas is as close as it gets.  I will check out some tutorials and hopefully it's one foot after another from there.     Have a great weekend to all!
Precisely, which log? Can you provide an example? (Anonymised as necessary.)