Splunk Cloud Platform

How to register log event by SPL.

smart111
Explorer

Does anyone know how to register log event to another index by SPL.

I'm assuming the answers like registering recodes from lookup file to an index executing a SPL regularly.

If there any way like that, please give your answer.

Labels (2)
Tags (1)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

@smart111  - By registering an event, do you mean, indexing an event to index?

If so, then you can try using `collect` command.

For example if you wish to ingest entries from lookup file to index, your search would look something like this:

| inputlookup <your-lookup> | collect index=<index> sourcetype=<source>

- if the lookup is large, just make sure this event indexing is subject to license consumption just like normal Splunk data ingestion.

https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Collect

View solution in original post

VatsalJagani
SplunkTrust
SplunkTrust

@smart111  - By registering an event, do you mean, indexing an event to index?

If so, then you can try using `collect` command.

For example if you wish to ingest entries from lookup file to index, your search would look something like this:

| inputlookup <your-lookup> | collect index=<index> sourcetype=<source>

- if the lookup is large, just make sure this event indexing is subject to license consumption just like normal Splunk data ingestion.

https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Collect

smart111
Explorer

Thank you @VatsalJagani 

That's really big help to me.

I could see a slution for the problem.

I appreciate.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...