Dashboards & Visualizations

Generate text who including result

gamsecurity
Explorer

Hi,

In a dashboard we have a form with two inputs (email & subject).
We are looking for generate a text in this dashboard who including result from search.

For example a simple search :

index=myindex src=$email$ message_subject=$msg_sub$ | stats count(recipients) by src

this search will be used to generate a text in a dashboard :

" Sed et eros bibendum, fermentum nibh volutpat, convallis lorem. Nunc in dignissim lacus. Integer sodales tristique ultricies. In porta condimentum neque eget gravida. Sed magna dolor, laoreet non tortor sed, feugiat varius lacus. Donec semper hendrerit orci ac sodales. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam mollis id augue non laoreet.

Etiam porttitor magna $email$ suscipit tortor luctus dignissim $msg_sub$

Morbi sit amet neque ipsum. Nam rhoncus dui nec neque bibendum commodo. Maecenas consequat imperdiet nisl a accumsan. Aenean pellentesque, justo sed elementum porta, nisl sem suscipit leo, quis consequat sapien velit et mi. Vivamus varius auctor risus, elementum pharetra nisl malesuada ut. Duis malesuada sollicitudin dignissim. In lacinia sagittis urna quis sollicitudin. Pellentesque a enim ultricies, blandit dui sit amet, tincidunt est."

A function/method exist to do that ?

Thanks for your help.

Labels (1)
0 Karma

niketn
Legend

@gamsecurity please add more details on where is the message coming from? From looks of it seems possible through SPL. Also please add more context for your requirement for the community to assist you better.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

gamsecurity
Explorer

Hey,

 

Thanks for your awnser, I'll try to be as  clearest as possible.

We have data who are incomming from 2 differents index (microsoft exchange, and postfix(smtp)) and we need to generate a text with somes extracted fields  from these index.

For example, a search who find phishing mail will return only mail addresses, subject and co... 
We need to include this mail address and subject on a simple text.

For now, the search work, but we need to include our results in a text to warn our user by mail.

I hope it's clear for you.

Best regards.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...