All Posts

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

All Posts

Try this one : <your_search>| rex field=Tags "avd:(?<avd>[^,]+),\s*dept:(?<dept>[^,]+),\s*cm-resource-parent:(?<cm_resource_parent>[^,]+),\s*manager:(?<manager>[^$]+)" ------ If you find this solu... See more...
Try this one : <your_search>| rex field=Tags "avd:(?<avd>[^,]+),\s*dept:(?<dept>[^,]+),\s*cm-resource-parent:(?<cm_resource_parent>[^,]+),\s*manager:(?<manager>[^$]+)" ------ If you find this solution helpful, please consider accepting it and awarding karma points !!  
Two things. 1. A Heavy Forwarder is a Splunk Enterprise instance. It's just doing forwarding. 2. If you can receive your UDP traffic at the forwarder why send it to another Splunk instance with sys... See more...
Two things. 1. A Heavy Forwarder is a Splunk Enterprise instance. It's just doing forwarding. 2. If you can receive your UDP traffic at the forwarder why send it to another Splunk instance with syslog instead of native Splunk protocol?
Perhaps this answer will help: https://community.splunk.com/t5/Splunk-Enterprise/Having-Syslog-logs-into-SPLUNK/m-p/693546/highlight/true#M19778
I've imported a csv file and one of the fields called "Tags" looks like this: Tags= "avd:vm, dept:support services, cm-resource-parent:/subscriptions/e9674c3a-f9f8-85cc-b457-94cf0fbd9715/resourcegr... See more...
I've imported a csv file and one of the fields called "Tags" looks like this: Tags= "avd:vm, dept:support services, cm-resource-parent:/subscriptions/e9674c3a-f9f8-85cc-b457-94cf0fbd9715/resourcegroups/avd-standard-pool-rg/providers/microsoft.desktopvirtualization/hostpools/avd_standard_pool_1, manager:JohnDoe@email.com" I'd like to split each of these tags up into their own field/value, AND extract the first part of the tag as the field name. Result of new fields/values would look like this: avd="vm" dept="support services" cm-resource-parent="/subscriptions/e9674c3a-f9f8-85cc-b457-94cf0fbd9715/resourcegroups/avd-standard-pool-rg/providers/microsoft.desktopvirtualization/hostpools/avd_standard_pool_1" manager="JohnDoe@email.com" I've looked at a lot of examples with rex, MV commands, etc, but nothing that pulls the new field name out of the original field. The format of that Tags field is always the same as listed above, for all events. Thank you!
Apply following workaround in default-mode.conf Additionally you can also push this change via DS push across thousands of universal forwarders. Add index_thruput in the list of disabled proces... See more...
Apply following workaround in default-mode.conf Additionally you can also push this change via DS push across thousands of universal forwarders. Add index_thruput in the list of disabled processors.  Add following line as is in default-mode.conf.   #Turn off a processor [pipeline:indexerPipe] disabled_processors= index_thruput, indexer, indexandforward, latencytracker, diskusage, signing,tcp-output-generic-processor, syslog-output-generic-processor, http-output-generic-processor, stream-output-processor, s2soverhttpoutput, destination-key-processor     NOTE:  PLEASE DON'T APPLY ON HF/SH/IDX/CM/DS. You want to use different app( not SplunkUniversalForwarder app) to push the change.
I have an appliance that can only forward syslog via UDP. Is there a way for me to forward the udp syslog to a machine that has a Heavy Forwarder, or UF on it and have the forwarder relay the Syslog ... See more...
I have an appliance that can only forward syslog via UDP. Is there a way for me to forward the udp syslog to a machine that has a Heavy Forwarder, or UF on it and have the forwarder relay the Syslog via TLS to the server running my Splunk Enterprise Instance?
i cant find my splunk login page where should i check the splunk enterprise login page  
hostname.csv file. the result look like this.  the based_search doesn't have location. I would like to keep the location column as it. Pro tip: It is critical to give full use case and all rel... See more...
hostname.csv file. the result look like this.  the based_search doesn't have location. I would like to keep the location column as it. Pro tip: It is critical to give full use case and all relevant data when asking a question.  The solution is the same, just add location to output.  But before I illustrate code, you also need to answer the question whether location info is available in index data.  My speculation is not.  But that's just speculation.  It is very important to describe nuances. Anyway, suppose location is not in index data, here is the search you can use: index=* host=* ip=* mac=* | fields host ip mac | dedup host ip mac | lookup hostname.csv hostname AS host output hostname AS match location | table host ip mac location | outputlookup hostname.csv  Of course, location will be blank for any host that didn't have location in the old version of hostname.csv.
thank you for your help. hostname.csv ip                     mac                           hostname                location x.x.x.x                                                abc_01           ... See more...
thank you for your help. hostname.csv ip                     mac                           hostname                location x.x.x.x                                                abc_01                     NYC                        00:00:00                  def_02                       DC x.x.x.y           00:00:11                  ghi_03                        Chicago                                                             jkl_04                         LA   i would like to search in Splunk index=* host=* ip=* mac=*, compare my host equal to my hostname column from a lookup file "hostname.csv",  if it matches, then I would like to write ip and mac values to hostname.csv file. the result look like this.  the based_search doesn't have location. I would like to keep the location column as it. new hostname.csv file. ip                              mac                                       hostname                     location x.x.x.x                  00:new:mac                            abc_01                       NYC_orig x.x.y.new            00:00:00                                   def_02                        DC_orig x.x.x.y                  00:00:11                                    ghi_03                        Chicago_orig new.ip                new:mac                                      jkl_04                        LA_orig thank you.
I was thinking about somehow matching these two events on s and qid so I can insert field with hdr_mid value into first event. This will allow me to have all events with hdr_mid and qid in them so ... See more...
I was thinking about somehow matching these two events on s and qid so I can insert field with hdr_mid value into first event. This will allow me to have all events with hdr_mid and qid in them so grouping by hdr_mid and qid in final stats statement will allow to pull list of recipients. This is why you need to describe the full use case including all relevant data, not just those you are trying to extract something. @gcusello's idea is still applicable here; you just substitute stats with eventstats. <your-search> | eventstats values(hdr_mid) AS hdr_mid values(eval(if(cmd="send",rcpts,""))) AS rcpts BY s qid | stats whatever by hdr_mid qid  
Let me try to understand the requirement.  You will only compare hostname then add ip and mac from index, but only if hostname already exists in hostname.csv.  Is this correct? lookup is your friend.... See more...
Let me try to understand the requirement.  You will only compare hostname then add ip and mac from index, but only if hostname already exists in hostname.csv.  Is this correct? lookup is your friend. index=* host=* ip=* mac=* | fields host ip mac | dedup host ip mac | lookup hostname.csv hostname AS host output hostname AS match | table host ip mac | outputlookup hostname.csv
Quick summary: After @sainag_splunk identified this as a 9.2 bug, I updated the affected instance to 9.3 and the problem is gone.
The disabled setting in SHC only impacts captain election and member roster management.
I have a hostname.csv file and contact these attributes. hostname.csv ip                     mac                           hostname x.x.x.x                                                abc_01  ... See more...
I have a hostname.csv file and contact these attributes. hostname.csv ip                     mac                           hostname x.x.x.x                                                abc_01                        00:00:00                  def_02 x.x.x.y           00:00:11                  ghi_03                                                             jkl_04   i would like to search in Splunk index=* host=* ip=* mac=*, compare my host equal to my hostname column from a lookup file "hostname.csv",  if it matches, then I would like to write ip and mac values to hostname.csv file. the result look like this. new hostname.csv file. ip                              mac                                       hostname x.x.x.x                  00:new:mac                            abc_01 x.x.y.new            00:00:00                                   def_02 x.x.x.y                  00:00:11                                    ghi_03 new.ip                new:mac                                      jkl_04   thank you for your help!!!
What if you have multiple that you want to rename the same? | rename "Message.TaskInfo.CarHop Backup.LastResult"="-2147020576" AS Result | rename "Message.TaskInfo.CarHop Backup.LastResult"=1 AS Re... See more...
What if you have multiple that you want to rename the same? | rename "Message.TaskInfo.CarHop Backup.LastResult"="-2147020576" AS Result | rename "Message.TaskInfo.CarHop Backup.LastResult"=1 AS Result | rename "Message.TaskInfo.CarHop Backup.LastResult"=0 AS Result | rename "Message.TaskInfo.AI Restart Weekly.LastResult"=267011 AS Result | rename "Message.TaskInfo.CarHop Backup.LastResult"=267009 AS Result | rename "Message.TaskInfo.CarHop Backup.LastResult"=2 AS Result This is not working for me  
Hello All, I found an wired problem/defect. Not sure whether you are getting the same. Issue: I am unable to Bind IP and getting error 'OOps the server encountered unexpected Condition ' Followed ... See more...
Hello All, I found an wired problem/defect. Not sure whether you are getting the same. Issue: I am unable to Bind IP and getting error 'OOps the server encountered unexpected Condition ' Followed the : https://docs.splunk.com/Documentation/Splunk/8.0.3/Admin/BindSplunktoanIP It's related to editing the correct 'web.conf' file.  The document basically not telling which 'web.conf' file to edit. There are Eight 'web.conf' files in total. if you try coping 'web.conf' from 'Defaullt' folder into 'local' folder and editing 'mgmtHostPort' (with correct IP port etc,) it still does not work. Resolution : if you edit 'web.conf' file (for mgmtHostPort)  in the below location, it works perfectly i.e. you are able to launch the Splunk with 'IP address:8000' port. C:/Programme Files/Splunk/var/run/splunk/merged/web.conf However: If you restart Splunk Enterprise via the web console i.e. 'Restart button' within the application. The settings goes and you need to do it again. If you restart via Microsoft services>splunkd.service -- there is no problem. Environment Used : Splunk Enterprise - 9.3.1 (On-prem)    OS : Windows Server 2022 Also tried on Splunk Enterprise - 9.2.1  (On-prem) - Has same problem.    
Hi gcusello, Thanks for a quick reply. Unfortunately this approach in its entirety will not work as there are more events that these two in a "send an email" group of events. All events except the ... See more...
Hi gcusello, Thanks for a quick reply. Unfortunately this approach in its entirety will not work as there are more events that these two in a "send an email" group of events. All events except the first one from the two I posted have both hdr_mid and qid fields so I group them by these fields in stats. Also, only these two events i posted have rprt set of fields with s in them. I was thinking about somehow matching these two events on s and qid so I can insert field with hdr_mid value into first event. This will allow me to have all events with hdr_mid and qid in them so grouping by hdr_mid and qid in final stats statement will allow to pull list of recipients. BTW, the values statement below is exactly what I was looking for to pull rctps field from proper event. values(eval(if(cmd="send",rcpts,""))) AS rcpts  
Ok so push the authentication.conf from the deployer and on each search head and create a authentication.conf in system/local without the bind password in the stanza in clear text. something like thi... See more...
Ok so push the authentication.conf from the deployer and on each search head and create a authentication.conf in system/local without the bind password in the stanza in clear text. something like this  [ldap_1] bindDNpassword = abc123 then do a rolling restart on all of sh cluster and then the password should be encrypted
Don't understand the question I have a non clustered Indexing infrastructure (8 standalone indexers). @sainag_splunk wrote: I don't think that required.  I decide... See more...
Don't understand the question I have a non clustered Indexing infrastructure (8 standalone indexers). @sainag_splunk wrote: I don't think that required.  I decide what's required and i want the SHC to replicate distsearch.conf My question was another, leave replicate_search_peers away, What changes in a SHC by setting "disabled = true or false"? By default is true.
Hello @splunksuperman oneshot is typically used in development/testing environments when you want to do below. you can try for loop and wrap the command in it. Upload a file once to Splunk Don't w... See more...
Hello @splunksuperman oneshot is typically used in development/testing environments when you want to do below. you can try for loop and wrap the command in it. Upload a file once to Splunk Don't want to set up an ongoing input Need to directly copy data into Splunk Enterprise Refer: https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/MonitorfilesanddirectoriesusingtheCLI#Monitor_Splunk_Enterprise_files_and_directories_with_the_CLI For your data onboarding consider using a monitored input on a forwarder or use the splunk add-on for Microsoft Windows if dealing with Windows files. If this Helps, Please UpVote