Splunk Search

SPL map command

torustad
Path Finder

Good morning all,

I run this search

| makeresults count=4 | eval a="splunk_server" | map search="search index=esak-qa sourcetype=eport:access| table _time index $a$"

the value of the field splunk_server is listed in a column called splunk_server so it works as I want it to.

However, when I run this spl I get a column called "splunk_server host" with no values:

| makeresults count=4 | eval a="splunk_server host" | map search="search index=esak-qa sourcetype=eport:access| table _time index $a$"

How can I get two columns, namely splunk_server and host?
(I have also tried a="splunk_server,host")

Any tips?

Regards,
Bård Tørustad

Labels (1)
Tags (1)
0 Karma

torustad
Path Finder

The search is done using a timespan of 5 seconds around the _time of the event from the main search

0 Karma

torustad
Path Finder

Good morning and thanks for bearing over with me,

The problem with the rejected message was presumably that it contained sqlcode.

The primary search finds sql update statements from an index with windows events that are generated by an sqlserver. Then the attributes that are to be updated are extracted from the set-part of the sql update statement. (for example if a,y and z are the attributes to be updated then attrs is a comma separated list of the three)

0 Karma

torustad
Path Finder

So I tried to post the explanation again and got this:

Success!

 

and I clicked and got this:

This reply was marked as spam and has been removed. If you believe this is an error, submit an abuse report.

So I am lost....

0 Karma

torustad
Path Finder

No, that was a test to see if my response to you arrived which this test did.

I have tried to post a full explanation of what I want, but it seems to have been thrown away.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Manage Edge Processor pipelines end to end with APIs

This guide uses the Data Management APIs to create an Edge Processor, onboard one instance, deploy a pipeline ...

Splunk Brings Proof of Control to Digital Asset Transfers

Digital assets now sit inside the core of financial services. HSBC launched its Tokenized Deposit Service in ...

Manage Ingest Processor pipelines end to end with APIs

This guide uses the Data Management APIs to create an Ingest Processor pipeline, deploy it to the ...