<?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: Need help with a Rex command in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537193#M36720</link>
    <description>&lt;P&gt;OK either just remove the $ or add State to the end&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState"&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 26 Jan 2021 11:16:37 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-01-26T11:16:37Z</dc:date>
    <item>
      <title>Need help with a Rex command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537186#M36715</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to extract "Sync_State" from the below logs types:&lt;/P&gt;&lt;P&gt;log1:&amp;nbsp;&amp;nbsp;Synchronization : In Sync&lt;/P&gt;&lt;P&gt;log2:&amp;nbsp;Synchronization : Out of Sync&lt;/P&gt;&lt;P&gt;I created the rex command "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;\w+\s\w+)". Using this I am getting "In Sync" in the right way but for "Out of Sync" I am getting only "Out of".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me create a rex command to extract the field values in the desired way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 10:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537186#M36715</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-01-26T10:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a Rex command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537191#M36718</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync$)"&lt;/LI-CODE&gt;&lt;P&gt;Although, without the complete log entry, it may be that $ is inappropriate and something else would be better suited to denote the end of the value&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 10:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537191#M36718</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-01-26T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a Rex command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537192#M36719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ITWhisperer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. However it didn't work for me.&lt;/P&gt;&lt;P&gt;If you want to check the complete log entry then please find it below:&lt;/P&gt;&lt;P&gt;log1:&amp;nbsp;Mon Jan 25 19:07:03 EST 2021 Node Id :47337 Node State : Not running Synchronization : In Sync State : Stopped Number of template version : 6&lt;/P&gt;&lt;P&gt;log2:&amp;nbsp;Mon Jan 25 19:07:03 EST 2021 Node Id :47337 Node State : Running Synchronization : Out of Sync State : Stopped Number of template version : 6&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:12:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537192#M36719</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-01-26T11:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a Rex command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537193#M36720</link>
      <description>&lt;P&gt;OK either just remove the $ or add State to the end&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex "(?ms)Synchronization\s:\s(?&amp;lt;Sync_State&amp;gt;[\w\s]+Sync)\sState"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537193#M36720</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-01-26T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a Rex command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537196#M36721</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;SPAN&gt;ITWhisperer.. It worked. Your support is much much appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-help-with-a-Rex-command/m-p/537196#M36721</guid>
      <dc:creator>Mrig342</dc:creator>
      <dc:date>2021-01-26T11:53:02Z</dc:date>
    </item>
  </channel>
</rss>

