I am trying to create a new field called collection which is extracted from the existing source field. I am able to extract the field during an adhoc search, but want to create it using the field transformations without having to generate a regex during each search.
The source field value is just a path (ex: source=D:\Logs\SomeCollectionName_SomeDomain\SomeDomain.log) and I am extracting part of that path to aggregate by collection. I want to specifically want to target the source field to regex not _raw.
I have created a field transformation called testcollection and nothing is being extracted at search time.
Here are my settings for the testcollection field transformations (permissions are set for everyone to be able to read in the search app)
Maybe I have a misunderstanding of Field Transformations and should be using field extractions any guidance would be helpful. I am just using the default formatting, but maybe that is incorrect.
I have gone through the documentation for field transformations and field extracts. I understand how to extract new fields during a search, but I want this new field to be available to all of the users in our account.
Thank you. I tried that at first and I was running into this issue (I had to disable my json browser extension)
Your entry was not saved. The following error was reported: SyntaxError: Unexpected token < in JSON at position 0.
Once I disabled my extension I was able to create the field extraction. I will report back if it works as expected.
I used both field extractions and field transformations. The problem is raw does not include the source field. I am able to parse anything that matches the regex in _raw but it is not parsing the actual source field. I want to be able to target the source field like I can during adhoc searches example:
Some search |rex field=source "(?<CollectionMap>\w+)\_"
Actual: Anything with an underscore in _raw matches
I think I found my answer here:
I will have to open a support ticket with splunk. Thanks for your assistance.