Skip to content

Creating a widget for running SPL (Splunk) queries and mo.state #5402

Answered by dmadisetti
kyrre asked this question in Q&A
Discussion options

You must be logged in to vote

You could use localstorage on the JS side to persist per user/ app.

State doesn't work well unless exposed as a toplevel variable. This works just by virtue of having hidden object references (even without state)- refactoring without state should make things a little cleaner

Another option is using mo.watch.file, which could save the user query if the queries are meant to be relatively persistent.

But cool! Feedback on DevX is appreciated

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kyrre
Comment options

Answer selected by kyrre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants