<?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: Extract Field values and plot on time series graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691596#M235478</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex "target: Temp\((?&amp;lt;target&amp;gt;\d+)\), state: Temp\((?&amp;lt;state&amp;gt;\d+)\), cavity: (?&amp;lt;cavity&amp;gt;\d+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 16:50:01 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-06-25T16:50:01Z</dc:date>
    <item>
      <title>Extract Field values and plot on time series graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691595#M235477</link>
      <description>&lt;P&gt;I would like to extract the Message, Timestamp, and serial fields&lt;/P&gt;&lt;P&gt;Then I would like to plot the&amp;nbsp;&lt;EM&gt;&lt;SPAN class=""&gt;target:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Temp&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;315600&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN class=""&gt;state:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Temp&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;315600&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN class=""&gt;cavity:&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;178900&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Each on individual plots based on the time series&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I take it I will have to use a rex command to extract the bolded values from the message field.&lt;BR /&gt;How would I go about this?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;bootcount&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:10&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;device_id&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;71ff6686fa5347828e3668e59249d0be&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;environment&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;prod_walker&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;BR /&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;event_source&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;appliance&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;event_type&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;GENERIC&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;city&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"","&lt;/SPAN&gt;&lt;SPAN class=""&gt;country&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;XXX&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;latitude&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:XXX&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;longitude&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:XXX&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;state&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;""},&lt;BR /&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;log_level&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;info&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;hardware_controller:&lt;/SPAN&gt; Test&lt;SPAN class=""&gt;State&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN class=""&gt;target:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Temp&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;315600&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN class=""&gt;state:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Temp&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;315600&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN class=""&gt;cavity:&lt;/SPAN&gt; &lt;SPAN class=""&gt;178900&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;fuel:&lt;/SPAN&gt; &lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;shutdown:&lt;/SPAN&gt; &lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;errors:&lt;/SPAN&gt; test&lt;SPAN&gt;() }",&lt;BR /&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;model_number&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"XXXX&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;sequence&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:1411&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;serial&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;XXXX&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;software_version&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;2.2.2.7641&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;ticks&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:158236&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;timestamp&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:1717972790&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691595#M235477</guid>
      <dc:creator>nkavouris</dc:creator>
      <dc:date>2024-06-25T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field values and plot on time series graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691596#M235478</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "target: Temp\((?&amp;lt;target&amp;gt;\d+)\), state: Temp\((?&amp;lt;state&amp;gt;\d+)\), cavity: (?&amp;lt;cavity&amp;gt;\d+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691596#M235478</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-25T16:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field values and plot on time series graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691601#M235479</link>
      <description>&lt;P&gt;I have accomplished the Rex using field extractor&lt;BR /&gt;&lt;BR /&gt;but as for plotting the values this is not of much help, id like to plot the values found with the associated timestamp of the event into a line chart&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 18:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691601#M235479</guid>
      <dc:creator>nkavouris</dc:creator>
      <dc:date>2024-06-25T18:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field values and plot on time series graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691603#M235480</link>
      <description>&lt;P&gt;Does it appear when you change the search results to the "visualization" tab,&amp;nbsp; then switch the visualization to "Line Chart"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively could you try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your search that extracts the fields&amp;gt;
| timechart mode(target) as target mode(state) as state mode(cavity) as cavity&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Jun 2024 18:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691603#M235480</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-06-25T18:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Field values and plot on time series graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691634#M235490</link>
      <description>&lt;P&gt;The extraction gives you the values for the fields for each event. Each event will have an _time field with the time of the event. You have all the information you need to plot the values against time. Is it simply that you want to restrict the fields that are plotted?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table _time target state cavity&lt;/LI-CODE&gt;&lt;P&gt;The first field will be the x-axis on the chart (when you select a line chart as your visualisation), the other fields will be the series in the chart, each of which will be a line on the chart. What more do you need?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 07:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Field-values-and-plot-on-time-series-graph/m-p/691634#M235490</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-26T07:54:43Z</dc:date>
    </item>
  </channel>
</rss>

