<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there any possibility to split the value from the message field, like teamName, ID as a different field? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639445#M109184</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254265"&gt;@JGP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's a little ugly but since the message field looks to be valid JSON, you could do this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
  ``` backup event then rename message field to _raw ```
| eval raw=_raw | rename message AS _raw  
| extract    ``` extract the json from _raw - n.b. it only works on _raw field ```
  ``` rename _raw back to message, reset _raw event back to original and remove copy ```
| rename _raw AS message | eval _raw=raw | fields - raw &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how well it scales on big data sets.&lt;BR /&gt;&lt;BR /&gt;Anyway, hope it helps&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2023 04:44:36 GMT</pubDate>
    <dc:creator>yeahnah</dc:creator>
    <dc:date>2023-04-11T04:44:36Z</dc:date>
    <item>
      <title>Is there any possibility to split the value from the message field, like teamName, ID as a different field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638581#M109038</link>
      <description>&lt;P&gt;is there any possibility to split the value from the message field, like teamName, ID as a different field.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24756i76AABAF3BD48BB74/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 10:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638581#M109038</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-04-04T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: customized Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638582#M109039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254265"&gt;@JGP&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes it's possible but I need a sample of the event in text format, not screenshot, highlighting the fields to extract.&lt;/P&gt;&lt;P&gt;Put the samples using "Insert Edit Code Sample" button.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 08:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638582#M109039</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-04T08:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: customized Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638598#M109041</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath message
| spath input=message&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Apr 2023 08:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638598#M109041</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-04T08:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: customized Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638608#M109042</link>
      <description>&lt;P&gt;where to find the button?&lt;/P&gt;&lt;P&gt;sample event for ref.&lt;/P&gt;&lt;P&gt;appid: 111111&lt;BR /&gt;cluster: abcdefgh&lt;BR /&gt;container_id: c44444444444444444444455555555555566666&lt;BR /&gt;container_image: docker-dev-local.artifactrepository.**************.net/*********-project-111111/********************:master-55-c3444444&lt;BR /&gt;container_image_id: docker-dev-local.artifactrepository.********.net/*********-project-111111/******@s*************************&lt;BR /&gt;container_name: ecs-***************&lt;BR /&gt;environment: dev&lt;BR /&gt;hosting_env: *******&lt;BR /&gt;hostname: app-14.********.ecs.*******&lt;BR /&gt;level: debug&lt;BR /&gt;log_type: app_containers&lt;BR /&gt;logroute: *******************&lt;BR /&gt;message: {"timestamp":"2023-03-30T12:29:51.684Z","msg":"REQUEST DATA : GET /generic/healthcheck, client=1.1.1.1]","logClass":"org.springframework.web.filter.CommonsRequestLoggingFilter","threadID":"http-nio-9099-exec-9","logLevel":"DEBUG","ID":"111111","teamName":"SL"}&lt;BR /&gt;namespace_id: 00000000000000000000000000000&lt;BR /&gt;namespace_name: ************************&lt;BR /&gt;openshift: { [+]&lt;BR /&gt;}&lt;BR /&gt;ose_workload: dev&lt;BR /&gt;pod_id: 1111111111111111111111111&lt;BR /&gt;pod_ip: 11.11.11.111&lt;BR /&gt;pod_name: **********************&lt;BR /&gt;sector: *******&lt;BR /&gt;timestamp: 2023-03-30T12:29:51.684743385+00:00&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 09:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638608#M109042</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-04-04T09:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: customized Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638618#M109045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try to perform regex on the field to get the required values from the field. The below if a sample regex to extract the loglevel or teamName or ID. (need to optimize further accordingly.)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=_raw ""logLevel":"(?&amp;lt;loglevel&amp;gt;\S*)","ID":"(?&amp;lt;ID&amp;gt;\S*)","teamName":"(?&amp;lt;teamname&amp;gt;\w*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If the message field is already extracted you can try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=message ""logLevel":"(?&amp;lt;loglevel&amp;gt;\S*)","ID":"(?&amp;lt;ID&amp;gt;111111)","teamName":"(?&amp;lt;teamname&amp;gt;\w*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is what you are looking to do!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 09:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/638618#M109045</guid>
      <dc:creator>Icecream123</dc:creator>
      <dc:date>2023-04-04T09:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any possibility to split the value from the message field, like teamName, ID as a different field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639151#M109134</link>
      <description>&lt;P&gt;by any chance if we extract field "&lt;SPAN&gt;teamName", "ID " with the rex command can come under the event that pasted in the original post just like under message , namespace_id , namespace_name , .....?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 05:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639151#M109134</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-04-07T05:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any possibility to split the value from the message field, like teamName, ID as a different field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639444#M109183</link>
      <description>&lt;P&gt;any recommendations? we need those extracted fields to be come under the event details same like below&amp;nbsp;&lt;SPAN&gt;message , namespace_id , namespace_name , .....?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 04:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639444#M109183</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-04-11T04:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any possibility to split the value from the message field, like teamName, ID as a different field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639445#M109184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254265"&gt;@JGP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's a little ugly but since the message field looks to be valid JSON, you could do this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
  ``` backup event then rename message field to _raw ```
| eval raw=_raw | rename message AS _raw  
| extract    ``` extract the json from _raw - n.b. it only works on _raw field ```
  ``` rename _raw back to message, reset _raw event back to original and remove copy ```
| rename _raw AS message | eval _raw=raw | fields - raw &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how well it scales on big data sets.&lt;BR /&gt;&lt;BR /&gt;Anyway, hope it helps&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 04:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-possibility-to-split-the-value-from-the-message/m-p/639445#M109184</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-04-11T04:44:36Z</dc:date>
    </item>
  </channel>
</rss>

