All Posts

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

All Posts

@livehybrid , thank you for your response, unfortunately we need to set the election to false remotely on each member . So guess that is not possible with api call as we do not have POST.   Will lo... See more...
@livehybrid , thank you for your response, unfortunately we need to set the election to false remotely on each member . So guess that is not possible with api call as we do not have POST.   Will look into other possibilities. Thank you again
Hi @Leonardo1998  I would recommend looking at Splunk Connect for Syslog (SC4S) https://splunk.github.io/splunk-connect-for-syslog/main/ as this is designed exactly for taking syslog feeds from netw... See more...
Hi @Leonardo1998  I would recommend looking at Splunk Connect for Syslog (SC4S) https://splunk.github.io/splunk-connect-for-syslog/main/ as this is designed exactly for taking syslog feeds from network infrastructure, parsing it and then sending to your Splunk instance over HTTP Event Collector (HEC).  Did this answer help you? If so, please consider: Adding karma to show it was useful Marking it as the solution if it resolved your issue Commenting if you need any clarification Your feedback encourages the volunteers in this community to continue contributing
Hi @Raja1  You cannot set a static captaincy using the POST request, instead use the following: To switch to a static captain, reconfigure each cluster member to use a static captain: On the memb... See more...
Hi @Raja1  You cannot set a static captaincy using the POST request, instead use the following: To switch to a static captain, reconfigure each cluster member to use a static captain: On the member that you want to designate as captain, run this CLI command: splunk edit shcluster-config -mode captain -captain_uri <URI>:<management_port> -election false   2. On each non-captain member, run this CLI command: splunk edit shcluster-config -mode member -captain_uri <URI>:<management_port> -election false For more info check out https://help.splunk.com/en/splunk-enterprise/administer/distributed-search/9.3/manage-search-head-clustering/use-static-captain-to-recover-from-loss-of-majority#id_523dfe8f_7801_49b2_b533_7a0fec0b053d__Use_static_captain_to_recover_from_loss_of_majority  Did this answer help you? If so, please consider: Adding karma to show it was useful Marking it as the solution if it resolved your issue Commenting if you need any clarification Your feedback encourages the volunteers in this community to continue contributing
Ahh my apologies @tgulgund  - I misunderstood what you were looking for. Unfortunately embedding HTML directly in Dashboard Studio is not available/supported - only the limited Markdown code.  Di... See more...
Ahh my apologies @tgulgund  - I misunderstood what you were looking for. Unfortunately embedding HTML directly in Dashboard Studio is not available/supported - only the limited Markdown code.  Did this answer help you? If so, please consider: Adding karma to show it was useful Marking it as the solution if it resolved your issue Commenting if you need any clarification Your feedback encourages the volunteers in this community to continue contributing
Hi @shangxuan_shi  It would be worthwhile raising a Support ticket yourself aswell as @Butz  ticket, this will add a little weight as demonstrates multiple users are affected by the issue. You can ... See more...
Hi @shangxuan_shi  It would be worthwhile raising a Support ticket yourself aswell as @Butz  ticket, this will add a little weight as demonstrates multiple users are affected by the issue. You can access Support via https://www.splunk.com/support  Did this answer help you? If so, please consider: Adding karma to show it was useful Marking it as the solution if it resolved your issue Commenting if you need any clarification Your feedback encourages the volunteers in this community to continue contributing
Hello everyone, we’re currently working on integrating our network devices (such as routers, switches, and firewalls) into Splunk to enable centralized monitoring and log collection. As these are n... See more...
Hello everyone, we’re currently working on integrating our network devices (such as routers, switches, and firewalls) into Splunk to enable centralized monitoring and log collection. As these are network appliances, we’re required to proceed in agentless mode, since installing agents or forwarders directly on the devices is not an option. We would really appreciate any guidance or suggestions on: The best approaches for agentless integration (e.g., Syslog, SNMP, NetFlow, APIs) Any recommended Splunk add-ons or apps to support this Best practices or examples from similar implementations Thanks in advance for your help and insights!
Thanks @livehybrid  I have an  embed link for a widget on the external website and want to display in on my dashboard. I have a <iframe></iframe> link. how do I add it go my dashboard ?
Thanks.  I am looking to add a embded widget from external site and I have a <ifram><i/frame> link. How do i add it to my dashboard
Hi @tgulgund  Using dashboard studio you can create a link by using the Markdown object: The following markdown is what was used in this example: This is a link to [google](https://www.google.... See more...
Hi @tgulgund  Using dashboard studio you can create a link by using the Markdown object: The following markdown is what was used in this example: This is a link to [google](https://www.google.com) If unfamiliar with markdown, essentially you put the text in square brackets followed by the URL in regular brackets. Here is a full dashboard example: { "title": "testing", "description": "", "inputs": {}, "defaults": { "dataSources": { "ds.search": { "options": { "queryParameters": { "earliest": "-24h@h", "latest": "now" } } } } }, "visualizations": { "viz_hwZoBg6m": { "options": { "fontSize": "extraLarge", "markdown": "This is a link to [google](https://www.google.com)" }, "type": "splunk.markdown" } }, "dataSources": { "ds_UUxjD5lL": { "name": "Search_1", "options": { "query": "index=cultivar* clientip!=\"\\\"-\\\"\" | iplocation clientip | geostats latfield=lat longfield=lon count by method " }, "type": "ds.search" }, "search1": { "name": "search1", "options": { "query": "| makeresults \n| eval msg=\"Search 1\"" }, "type": "ds.search" }, "search2": { "name": "search2", "options": { "query": "| makeresults \n| eval msg=\"Search2\"" }, "type": "ds.search" } }, "layout": { "globalInputs": [], "layoutDefinitions": { "layout_1": { "options": { "display": "auto", "height": 960, "width": 1440 }, "structure": [ { "item": "viz_hwZoBg6m", "position": { "h": 190, "w": 830, "x": 0, "y": 0 }, "type": "block" } ], "type": "absolute" } }, "tabs": { "items": [ { "label": "New tab", "layoutId": "layout_1" } ] } } }  Did this answer help you? If so, please consider: Adding karma to show it was useful Marking it as the solution if it resolved your issue Commenting if you need any clarification Your feedback encourages the volunteers in this community to continue contributing
Amd what events are you expecting? As per the TA description, it provides custom search commands, not inputs.
Thank you for raising the support ticket. But I am quite new to Splunk. May I know how long will splunk take to response to the ticket and resolve the bug.  Also, Just to check with you, this is a... See more...
Thank you for raising the support ticket. But I am quite new to Splunk. May I know how long will splunk take to response to the ticket and resolve the bug.  Also, Just to check with you, this is a new error that just occur right? Because, I did not encounter this error weeks ago.
Am trying to set the kvstore captain in maintenance mode, but when i try set the kvstore captain in maintenance mode, it says that maintenance mode can only be set on the "static captain" I can sw... See more...
Am trying to set the kvstore captain in maintenance mode, but when i try set the kvstore captain in maintenance mode, it says that maintenance mode can only be set on the "static captain" I can switch to static captain using the following command successfully splunk edit shcluster-config -mode captain -captain_uri <URI>:<management_port> -election false But i have to set election to false on  non-captain members for which am trying to the curl command which fails curl -k -u username:password -X POST -d '{"mode":"member", "captain_uri":"https://captain.example.net:port","election":"false","target_uri":"https://member.example.net:port"}' https://member.example.net:port/services/shcluster/config/ <?xml version="1.0" encoding="UTF-8"?> <response> <messages> <msg type="ERROR">Cannot perform action "POST" without a target name to act on.</msg> </messages> </response> As per the documentation I can only see the get call (https://docs.splunk.com/Documentation/Splunk/9.4.2/RESTREF/RESTcluster#shcluster.2Fconfig) Are there any other alternatives to set the election=false for the non-captain members remotely  
I have a dashboard built using dashboard studio and I need to embed external link but I am unable to do us.  How do I add an external embed link
Is there a rest call to set the election as false from the captain for each cluster member , instead of logging into each seach head member and running the command  /opt/splunk/bin/splunk edit s... See more...
Is there a rest call to set the election as false from the captain for each cluster member , instead of logging into each seach head member and running the command  /opt/splunk/bin/splunk edit shcluster-config -mode member -captain_uri https://your-Captain-SH-address:8089 -election false  
Hey everyone I am using the misp42slunk app but can't get the events and I don't see any errors what am I doing wrong  
Amazing!, thanks brother @squared_away , got your idea, i'm prefer using saved search because applicable for form.token , instead of put SPL query under value because required add backslash \  it's ... See more...
Amazing!, thanks brother @squared_away , got your idea, i'm prefer using saved search because applicable for form.token , instead of put SPL query under value because required add backslash \  it's very simple we just create simple form { "type": "input.dropdown", "title": "Testing Multi Query", "options": { "items": [ { "label": "Query 1", "value": "| makeresults | eval key=\"value\" | table *" }, { "label": "Query 2", "value": "| loadjob savedsearch=\"admin:itsi:sla_availability\" artifact_offset=0" }, { "label": "Query 3", "value": "| savedsearch \"AWS - IPs available\"" } ], "token": "tos", "defaultValue": "" } }   And create the visualization with my example token $tos$ bellow :  
Hi @harpr86  Which app is the first request creating the search in?  I would recommend trying to update both of the API calls to using the servicesNS endpoints instead: /servicesNS/<user>/<app>/sa... See more...
Hi @harpr86  Which app is the first request creating the search in?  I would recommend trying to update both of the API calls to using the servicesNS endpoints instead: /servicesNS/<user>/<app>/saved/searches and /servicesNS/<user>/<app>/saved/searches/<alertName>/acl e.g. curl --location --request POST 'https://splunkHost:8089/servicesNS/automation/search/saved/searches' \ --header 'Authorization: Basic Auth' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'name=test_alert_harpreet07' \ --data-urlencode 'cron_schedule=*/30 * * * *' \ --data-urlencode 'description=This alert will be triggered if proxy has 4x,5x errors' \ --data-urlencode 'dispatch.earliest_time=-30@m' \ --data-urlencode 'dispatch.latest_time=now' \ --data-urlencode 'search=search index="federated:some-index" statusCode">3*"' \ --data-urlencode 'alert_type=number of events' \ --data-urlencode 'alert.expires=730d' \ --data-urlencode 'action.email.to=xyz.abc@def.com' \ --data-urlencode 'action.email.maxresults=50' \ --data-urlencode 'action.email.subject=some-Errors' \ --data-urlencode 'dispatchAs=user' \ --data-urlencode 'action.email.from=Splunk' curl --location --request POST 'https://splunkHost:8089/servicesNS/automation/search/saved/searches/test_alert_harpreet07/acl' \ --header 'Authorization: Basic Auth' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'sharing=app' \ --data-urlencode 'app=search' \ --data-urlencode 'perms.read=user' \ --data-urlencode 'perms.write=user' \ --data-urlencode 'owner=automation'  Did this answer help you? If so, please consider: Adding karma to show it was useful Marking it as the solution if it resolved your issue Commenting if you need any clarification Your feedback encourages the volunteers in this community to continue contributing  
Hi,  I am trying to create alert using api, alert is not getting created in shared mode. I need to run acl command separately to give r+w access  to user.   Command to create alert. curl --locati... See more...
Hi,  I am trying to create alert using api, alert is not getting created in shared mode. I need to run acl command separately to give r+w access  to user.   Command to create alert. curl --location --request POST 'https://splunkHost:8089/services/saved/searches' \ --header 'Authorization: Basic Auth' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'name=test_alert_harpreet07' \ --data-urlencode 'cron_schedule=*/30 * * * *' \ --data-urlencode 'description=This alert will be triggered if proxy has 4x,5x errors' \ --data-urlencode 'dispatch.earliest_time=-30@m' \ --data-urlencode 'dispatch.latest_time=now' \ --data-urlencode 'search=search index="federated:some-index" statusCode">3*'' \ --data-urlencode 'alert_type=number of events' \ --data-urlencode 'alert.expires=730d' \ --data-urlencode 'action.email.to=xyz.abc@def.com' \ --data-urlencode 'action.email.maxresults=50' \ --data-urlencode 'action.email.subject=some-Errors' \ --data-urlencode 'dispatchAs=user' \ --data-urlencode 'action.email.from=Splunk'     to give permission to user    curl --location --request POST 'https://splunkHOST"8089/services/saved/searches/<alertName>/acl' \ --header 'Authorization: Basic Auth' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'sharing=app' \ --data-urlencode 'app=search' \ --data-urlencode 'perms.read=user' \ --data-urlencode 'perms.write=user' \ --data-urlencode 'owner=automation'     #splunk #cloud    is there a way, that alert should be created in shared mode with  r+w access to user.
You might simply cut the prefix from your URI. Something like this | rex mode=sed field=uri "s/^\\/\S+((arabic|english)\\/)?//"  @yuanliu 's pooint about /experience/ part is also valid. But search... See more...
You might simply cut the prefix from your URI. Something like this | rex mode=sed field=uri "s/^\\/\S+((arabic|english)\\/)?//"  @yuanliu 's pooint about /experience/ part is also valid. But searching for */experience/* is not a best idea (search terms with wildcards at the beginning are usually best avoided).
you can replace "code_names" with "custom_function_names", it will pass linting and work, but like you said, it will force you out of the GUI editor. I've put in a support ticket.  they should just u... See more...
you can replace "code_names" with "custom_function_names", it will pass linting and work, but like you said, it will force you out of the GUI editor. I've put in a support ticket.  they should just update that GUI editor to use the documented parameter and we'll be back on track.