<?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: Help creating search to combine multiple message lines to create timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597040#M207825</link>
    <description>&lt;P&gt;The message is too long is there a way attach as a file here for your reference?&lt;/P&gt;&lt;P&gt;Kannan&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 23:16:08 GMT</pubDate>
    <dc:creator>varadack</dc:creator>
    <dc:date>2022-05-09T23:16:08Z</dc:date>
    <item>
      <title>Help creating search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596831#M207748</link>
      <description>&lt;P&gt;We have Splunk setup in our firm and our application logs writes TLS connections information that span across multiple lines and splunk treats every line as message.&lt;/P&gt;
&lt;P&gt;Example of Log:&lt;/P&gt;
&lt;P&gt;2022-05-07 20:06:24.712 &lt;STRONG&gt;SSL&lt;/STRONG&gt; &lt;STRONG&gt;accepted&lt;/STRONG&gt; &lt;STRONG&gt;cipher&lt;/STRONG&gt;=ECDHE-RSA-AES256-GCM-SHA384&lt;BR /&gt;2022-05-07 20:06:24.712 Connection protocol=TLSv1.2&lt;BR /&gt;2022-05-07 20:06:24.716 Dump of user cache:&lt;BR /&gt;2022-05-07 20:06:24.716 LDAP Cache: User 'user1' is a member of group(s):&lt;BR /&gt;2022-05-07 20:06:24.717 'xxxx-tibems-aaaa-prod-rdr'&lt;BR /&gt;2022-05-07 20:06:24.717 LDAP Cache: User 'auser2' is a member of group(s):&lt;BR /&gt;2022-05-07 20:06:24.717 'xxxx-tibems-yyyy-prod-wtr'&lt;BR /&gt;2022-05-07 20:06:24.717 LDAP Cache: User 'ad_cibgvaprod_rdr' is a member of group(s):&lt;BR /&gt;2022-05-07 20:06:24.717 'xxxx-tibems-yyyy-prod-rdr'&lt;BR /&gt;2022-05-07 20:06:24.717 LDAP Cache: User 'ad_vcsmonprod_adm' is a member of group(s):&lt;BR /&gt;2022-05-07 20:06:24.717 'xxxx-tibems-bbbb-prod'&lt;BR /&gt;2022-05-07 20:06:24.717 'xxxx-tibems-aaaa-prod-shutdown'&lt;BR /&gt;2022-05-07 20:06:24.717 [&lt;STRONG&gt;user1@server1.svr.us.example.net]: Connected,&lt;/STRONG&gt; connection id=21879, client id=&amp;lt;none&amp;gt;, type: queue, UTC offset=2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here line starts with "SSL accepted cipher=" and ends with "ser1@server1.svr.us.example.net]: Connected,"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like timecharts cipher (ECDHE-RSA-AES256-GCM-SHA384), user (user1), Server (server1.svr.us.example.net)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stats like follows&lt;/P&gt;
&lt;P&gt;Date Hour&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cipher&amp;nbsp; &amp;nbsp;User&amp;nbsp; &amp;nbsp;Server Count&lt;/P&gt;
&lt;P&gt;10-10-20 10:00&amp;nbsp;ECDHE-RSA-AES256-GCM-SHA384) user1 server1 200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if there an elegant solution to this,&lt;/P&gt;
&lt;P&gt;Kannan&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 05:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596831#M207748</guid>
      <dc:creator>varadack</dc:creator>
      <dc:date>2022-05-08T05:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596834#M207749</link>
      <description>&lt;P&gt;You can use the &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt; command to fit the events together, then extract the desired fields with &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;.&amp;nbsp; Finally, the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command will give the counts.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transaction startswith="SSL accepted cipher" endswith="]: Connected"
| rex "cipher=(?&amp;lt;cipher&amp;gt;\S+)"
| rex "\[(?&amp;lt;user&amp;gt;[^@]+)@(?&amp;lt;server&amp;gt;[^\]]+)"
| stats count by _time,cipher,user,server&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 00:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596834#M207749</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-08T00:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596850#M207752</link>
      <description>&lt;P&gt;Thanks just a start as cipher is not able to filter filed just cipher&lt;/P&gt;&lt;P&gt;Example On Cipher it adds extra field as it sees in splunk search&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;@timestamp&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;2022-05-08T15:10:28.291Z&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;@version&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Broker&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;broker&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;a_time&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;2022-05-08 15:10:28.275&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;app_id&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;appid&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;host&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;server&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt; SSL accepted cipher=ECDHE-RSA-AES256-GCM-SHA384&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;/apps/broker/port/logs/server.log&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;port&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;port&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;A href="https://icpcarl00177.svr.us.jpmchase.net:12767/en-US/app/search/search?q=search%20index%3D%2286485%22%20EMSMSGP08-NE1%20%7C%20spath%20message%20%7C%20search%20message%20(SSL%20accepted%20cipher)&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-30m&amp;amp;latest=now&amp;amp;sid=1652022629.2750307_E0C79004-142B-4E10-8C2D-EDAEA7A7EF48#" target="_blank" rel="noopener"&gt;Show as raw text&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;host =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;server&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;host =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A title="iaasn00426658" href="https://icpcarl00177.svr.us.jpmchase.net:12767/en-US/app/search/search?q=search%20index%3D%2286485%22%20EMSMSGP08-NE1%20%7C%20spath%20message%20%7C%20search%20message%20(SSL%20accepted%20cipher)&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-30m&amp;amp;latest=now&amp;amp;sid=1652022629.2750307_E0C79004-142B-4E10-8C2D-EDAEA7A7EF48#" target="_blank" rel="noopener"&gt;server&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;message =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A title=" SSL accepted cipher=ECDHE-RSA-AES256-GCM-SHA384" href="https://icpcarl00177.svr.us.jpmchase.net:12767/en-US/app/search/search?q=search%20index%3D%2286485%22%20EMSMSGP08-NE1%20%7C%20spath%20message%20%7C%20search%20message%20(SSL%20accepted%20cipher)&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-30m&amp;amp;latest=now&amp;amp;sid=1652022629.2750307_E0C79004-142B-4E10-8C2D-EDAEA7A7EF48#" target="_blank" rel="noopener"&gt;SSL accepted cipher=ECDHE-RSA-AES256-GCM-SHA384&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;ECDHE-RSA-AES256-GCM-SHA384","host":"xxxx","path":"/apps/broker/port/logs/server.domain.log","broker":"broker-NE1","type":"type","@version":"1","a_time":"2022-05-08&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;similarly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;user and server also&amp;nbsp; comes as comes with other texts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/DC=net/DC=company/DC=vvvv/CN=zzz]","host":"server","path":"/apps/broker/port/logs/server.log","Broker":"broker-NE1","type":"type","&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;server also clobbered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kannan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2022 15:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596850#M207752</guid>
      <dc:creator>varadack</dc:creator>
      <dc:date>2022-05-08T15:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596944#M207785</link>
      <description>&lt;P&gt;The regular expressions in my first reply are correct for the example events provided in the OP.&amp;nbsp; They may need to be adapted for live data.&amp;nbsp; If you need help with that, please provide actual events with sensitive data masked, but &lt;STRONG&gt;preserve the original format&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 12:25:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/596944#M207785</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-09T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597040#M207825</link>
      <description>&lt;P&gt;The message is too long is there a way attach as a file here for your reference?&lt;/P&gt;&lt;P&gt;Kannan&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 23:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597040#M207825</guid>
      <dc:creator>varadack</dc:creator>
      <dc:date>2022-05-09T23:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597043#M207827</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;richgalloway,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your starting query was very promising&amp;nbsp;and used to restrict the regex modifying as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rex "cipher=(?&amp;lt;cipher&amp;gt;\S+)\",\"(type|Broker)" | &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it includes type and Broker also in the cipher filed and counts as below but I wanted only cipher&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cipher user server count&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ECDHE-RSA-AES256-GCM-SHA384","type":"TYPE&lt;/TD&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;server1&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ECDHE-RSA-AES256-GCM-SHA384","Broker":"Broker"&lt;/TD&gt;&lt;TD&gt;user2&lt;/TD&gt;&lt;TD&gt;server1&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 10 May 2022 00:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597043#M207827</guid>
      <dc:creator>varadack</dc:creator>
      <dc:date>2022-05-10T00:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597164#M207899</link>
      <description>&lt;P&gt;Now that we have more sample data, we can refine the regular expressions.&amp;nbsp; Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "cipher=(?&amp;lt;cipher&amp;gt;[^\\\"]+)"
| rex "type\\\":\\\"(?&amp;lt;type&amp;gt;[^\\\"]+)"
| rex "Broker\\\":\\\"(?&amp;lt;Broker&amp;gt;[^\\\"]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 May 2022 13:32:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597164#M207899</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-10T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search to combine multiple message lines to create timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597350#M207973</link>
      <description>&lt;P&gt;Thanks a lot and it completely worked as expected and responded quick to solve this&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 10:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-search-to-combine-multiple-message-lines-to-create/m-p/597350#M207973</guid>
      <dc:creator>varadack</dc:creator>
      <dc:date>2022-05-11T10:01:36Z</dc:date>
    </item>
  </channel>
</rss>

